Lines Matching refs:op_inst

256     Instruction* op_inst =  in MergeNegateArithmetic()  local
258 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateArithmetic()
261 if (op_inst->opcode() == inst->opcode()) { in MergeNegateArithmetic()
265 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0u)}}}); in MergeNegateArithmetic()
291 Instruction* op_inst = in MergeNegateMulDivArithmetic() local
293 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateMulDivArithmetic()
299 SpvOp opcode = op_inst->opcode(); in MergeNegateMulDivArithmetic()
303 const_mgr->GetOperandConstants(op_inst); in MergeNegateMulDivArithmetic()
310 ? op_inst->GetSingleWordInOperand(0u) in MergeNegateMulDivArithmetic()
311 : op_inst->GetSingleWordInOperand(1u); in MergeNegateMulDivArithmetic()
313 inst->SetOpcode(op_inst->opcode()); in MergeNegateMulDivArithmetic()
349 Instruction* op_inst = in MergeNegateAddSubArithmetic() local
351 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateAddSubArithmetic()
357 if (op_inst->opcode() == SpvOpFAdd || op_inst->opcode() == SpvOpFSub || in MergeNegateAddSubArithmetic()
358 op_inst->opcode() == SpvOpIAdd || op_inst->opcode() == SpvOpISub) { in MergeNegateAddSubArithmetic()
360 const_mgr->GetOperandConstants(op_inst); in MergeNegateAddSubArithmetic()
363 bool is_add = (op_inst->opcode() == SpvOpFAdd) || in MergeNegateAddSubArithmetic()
364 (op_inst->opcode() == SpvOpIAdd); in MergeNegateAddSubArithmetic()
372 const_id = zero_is_variable ? op_inst->GetSingleWordInOperand(1u) in MergeNegateAddSubArithmetic()
373 : op_inst->GetSingleWordInOperand(0u); in MergeNegateAddSubArithmetic()
378 zero_is_variable ? op_inst->GetSingleWordInOperand(0u) : const_id; in MergeNegateAddSubArithmetic()
380 zero_is_variable ? const_id : op_inst->GetSingleWordInOperand(1u); in MergeNegateAddSubArithmetic()
638 Instruction* op_inst = def_use_mgr->GetDef(op_id); in MergeMulDivArithmetic() local
639 if (op_inst->opcode() == SpvOpFDiv) { in MergeMulDivArithmetic()
640 if (op_inst->GetSingleWordInOperand(1) == in MergeMulDivArithmetic()
644 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0)}}}); in MergeMulDivArithmetic()
822 Instruction* op_inst = def_use_mgr->GetDef(op_id); in MergeDivMulArithmetic() local
824 if (op_inst->opcode() == SpvOpFMul) { in MergeDivMulArithmetic()
826 if (op_inst->GetSingleWordInOperand(i) == in MergeDivMulArithmetic()
830 {op_inst->GetSingleWordInOperand(1 - i)}}}); in MergeDivMulArithmetic()