Lines Matching refs:op_inst
296 Instruction* op_inst = in MergeNegateArithmetic() local
298 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateArithmetic()
301 if (op_inst->opcode() == inst->opcode()) { in MergeNegateArithmetic()
305 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0u)}}}); in MergeNegateArithmetic()
331 Instruction* op_inst = in MergeNegateMulDivArithmetic() local
333 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateMulDivArithmetic()
339 SpvOp opcode = op_inst->opcode(); in MergeNegateMulDivArithmetic()
343 const_mgr->GetOperandConstants(op_inst); in MergeNegateMulDivArithmetic()
350 ? op_inst->GetSingleWordInOperand(0u) in MergeNegateMulDivArithmetic()
351 : op_inst->GetSingleWordInOperand(1u); in MergeNegateMulDivArithmetic()
353 inst->SetOpcode(op_inst->opcode()); in MergeNegateMulDivArithmetic()
389 Instruction* op_inst = in MergeNegateAddSubArithmetic() local
391 if (HasFloatingPoint(type) && !op_inst->IsFloatingPointFoldingAllowed()) in MergeNegateAddSubArithmetic()
397 if (op_inst->opcode() == SpvOpFAdd || op_inst->opcode() == SpvOpFSub || in MergeNegateAddSubArithmetic()
398 op_inst->opcode() == SpvOpIAdd || op_inst->opcode() == SpvOpISub) { in MergeNegateAddSubArithmetic()
400 const_mgr->GetOperandConstants(op_inst); in MergeNegateAddSubArithmetic()
403 bool is_add = (op_inst->opcode() == SpvOpFAdd) || in MergeNegateAddSubArithmetic()
404 (op_inst->opcode() == SpvOpIAdd); in MergeNegateAddSubArithmetic()
412 const_id = zero_is_variable ? op_inst->GetSingleWordInOperand(1u) in MergeNegateAddSubArithmetic()
413 : op_inst->GetSingleWordInOperand(0u); in MergeNegateAddSubArithmetic()
418 zero_is_variable ? op_inst->GetSingleWordInOperand(0u) : const_id; in MergeNegateAddSubArithmetic()
420 zero_is_variable ? const_id : op_inst->GetSingleWordInOperand(1u); in MergeNegateAddSubArithmetic()
677 Instruction* op_inst = def_use_mgr->GetDef(op_id); in MergeMulDivArithmetic() local
678 if (op_inst->opcode() == SpvOpFDiv) { in MergeMulDivArithmetic()
679 if (op_inst->GetSingleWordInOperand(1) == in MergeMulDivArithmetic()
683 {{SPV_OPERAND_TYPE_ID, {op_inst->GetSingleWordInOperand(0)}}}); in MergeMulDivArithmetic()
861 Instruction* op_inst = def_use_mgr->GetDef(op_id); in MergeDivMulArithmetic() local
863 if (op_inst->opcode() == SpvOpFMul) { in MergeDivMulArithmetic()
865 if (op_inst->GetSingleWordInOperand(i) == in MergeDivMulArithmetic()
869 {op_inst->GetSingleWordInOperand(1 - i)}}}); in MergeDivMulArithmetic()