Searched refs:op_inst (Results 1 – 8 of 8) sorted by relevance
125 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract() local128 if (op_inst->opcode() != SpvOpLoad) { in ShouldReplaceExtract()132 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract()141 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract()155 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()176 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
256 Instruction* op_inst = in MergeNegateArithmetic() local258 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() local293 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()[all …]
189 Instruction* op_inst = def_use_mgr->GetDef(id); in MarkCompositeContructUsesAsLive() local191 if (HasScalarResult(op_inst)) { in MarkCompositeContructUsesAsLive()193 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()200 assert(HasVectorResult(op_inst)); in MarkCompositeContructUsesAsLive()202 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()204 type_mgr->GetType(op_inst->type_id())->AsVector()->element_count(); in MarkCompositeContructUsesAsLive()
245 Instruction* op_inst = context()->get_def_use_mgr()->GetDef(*id_ptr); in TraceInstruction() local247 context()->get_type_mgr()->GetType(op_inst->type_id()); in TraceInstruction()253 TraceInstruction(op_inst, indices, visited); in TraceInstruction()496 Instruction* op_inst = in UpgradeBarriers() local499 context()->get_type_mgr()->GetType(op_inst->type_id()); in UpgradeBarriers()
125 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract() local128 if (op_inst->opcode() != SpvOpLoad) { in ShouldReplaceExtract()132 auto cached_result = should_replace_cache_.find(op_inst->result_id()); in ShouldReplaceExtract()141 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract()156 analysis::Type* load_type = type_mgr->GetType(op_inst->type_id()); in ShouldReplaceExtract()177 should_replace_cache_[op_inst->result_id()] = should_replace; in ShouldReplaceExtract()
209 Instruction* op_inst = def_use_mgr->GetDef(id); in MarkCompositeContructUsesAsLive() local211 if (HasScalarResult(op_inst)) { in MarkCompositeContructUsesAsLive()213 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()220 assert(HasVectorResult(op_inst)); in MarkCompositeContructUsesAsLive()222 new_work_item.instruction = op_inst; in MarkCompositeContructUsesAsLive()224 type_mgr->GetType(op_inst->type_id())->AsVector()->element_count(); in MarkCompositeContructUsesAsLive()
262 Instruction* op_inst = context()->get_def_use_mgr()->GetDef(*id_ptr); in TraceInstruction() local264 context()->get_type_mgr()->GetType(op_inst->type_id()); in TraceInstruction()270 TraceInstruction(op_inst, indices, visited); in TraceInstruction()513 Instruction* op_inst = in UpgradeBarriers() local516 context()->get_type_mgr()->GetType(op_inst->type_id()); in UpgradeBarriers()