Home
last modified time | relevance | path

Searched refs:def_use_mgr (Results 1 – 25 of 75) sorted by relevance

123

/external/angle/third_party/spirv-tools/src/source/opt/
Dvector_dce.cpp99 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkExtractUseAsLive() local
102 Instruction* operand_inst = def_use_mgr->GetDef(operand_id); in MarkExtractUseAsLive()
120 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkInsertUsesAsLive() local
129 Instruction* operand_inst = def_use_mgr->GetDef(operand_id); in MarkInsertUsesAsLive()
143 Instruction* obj_operand_inst = def_use_mgr->GetDef(obj_operand_id); in MarkInsertUsesAsLive()
154 Instruction* object_inst = def_use_mgr->GetDef(object_id); in MarkInsertUsesAsLive()
167 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkVectorShuffleUsesAsLive() local
171 def_use_mgr->GetDef(current_item.instruction->GetSingleWordInOperand(0)); in MarkVectorShuffleUsesAsLive()
174 def_use_mgr->GetDef(current_item.instruction->GetSingleWordInOperand(1)); in MarkVectorShuffleUsesAsLive()
201 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkCompositeContructUsesAsLive() local
[all …]
Dloop_unswitch_pass.cpp102 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in CreateBasicBlock() local
109 def_use_mgr->AnalyzeInstDef(bb->GetLabelInst()); in CreateBasicBlock()
154 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in PerformUnswitch() local
183 def_use_mgr->AnalyzeInstDef(loop_merge_block->GetLabelInst()); in PerformUnswitch()
252 def_use_mgr->AnalyzeInstDef(loop_pre_header->GetLabelInst()); in PerformUnswitch()
296 def_use_mgr->GetDef(iv_condition->GetOperand(0).words[0]); in PerformUnswitch()
461 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in SpecializeLoop() local
467 def_use_mgr->ForEachUse(to_version_insn, in SpecializeLoop()
492 def_use_mgr->AnalyzeInstUse(inst); in SpecializeLoop()
501 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in IsDynamicallyUniform() local
[all …]
Dloop_peeling.cpp37 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in DuplicateAndConnectLoop() local
118 loop_->GetHeaderBlock()->ForEachPhiInst([cloned_loop_exit, def_use_mgr, in DuplicateAndConnectLoop()
127 def_use_mgr->AnalyzeInstUse(phi); in DuplicateAndConnectLoop()
185 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in GetIteratorUpdateOperations() local
187 iterator->ForEachInId([def_use_mgr, loop, operations, this](uint32_t* id) { in GetIteratorUpdateOperations()
188 Instruction* insn = def_use_mgr->GetDef(*id); in GetIteratorUpdateOperations()
263 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in GetIteratingExitValues() local
272 [condition_block_id, def_use_mgr, this](Instruction* phi) { in GetIteratingExitValues()
278 def_use_mgr->GetDef(phi->GetSingleWordInOperand(i)); in GetIteratingExitValues()
346 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in CreateBlockBefore() local
[all …]
Dreduce_load_size.cpp56 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in ReplaceExtract() local
62 Instruction* composite_inst = def_use_mgr->GetDef(composite_id); in ReplaceExtract()
124 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in ShouldReplaceExtract() local
125 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract()
141 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract()
Dcombine_access_chains.cpp89 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in GetIndexedType() local
92 Instruction* base_ptr = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in GetIndexedType()
105 def_use_mgr->GetDef(inst->GetSingleWordInOperand(i)); in GetIndexedType()
123 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in CombineIndices() local
126 Instruction* last_index_inst = def_use_mgr->GetDef( in CombineIndices()
132 def_use_mgr->GetDef(inst->GetSingleWordInOperand(1)); in CombineIndices()
Dcopy_prop_arrays.cpp220 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in BuildMemoryObjectFromLoad() local
222 Instruction* current_inst = def_use_mgr->GetDef( in BuildMemoryObjectFromLoad()
237 current_inst = def_use_mgr->GetDef(current_inst->GetSingleWordInOperand(0)); in BuildMemoryObjectFromLoad()
358 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in BuildMemoryObjectFromInsert() local
413 def_use_mgr->GetDef(insert_inst->GetSingleWordInOperand(1)); in BuildMemoryObjectFromInsert()
458 def_use_mgr->GetDef(current_insert->GetSingleWordInOperand(1)); in BuildMemoryObjectFromInsert()
478 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in CanUpdateUses() local
491 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses()
572 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in UpdateUses() local
575 def_use_mgr->ForEachUse(original_ptr_inst, in UpdateUses()
[all …]
Dlocal_single_store_elim_pass.cpp189 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in FindUses() local
190 def_use_mgr->ForEachUser(var_inst, [users, this](Instruction* user) { in FindUses()
199 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in FeedsAStore() local
200 return !def_use_mgr->WhileEachUser(inst, [this](Instruction* user) { in FeedsAStore()
Dif_conversion.cpp241 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in HoistInstruction() local
243 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in HoistInstruction()
244 Instruction* operand_inst = def_use_mgr->GetDef(*id); in HoistInstruction()
276 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in CanHoistInstruction() local
278 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in CanHoistInstruction()
279 Instruction* operand_inst = def_use_mgr->GetDef(*id); in CanHoistInstruction()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dvector_dce.cpp99 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkExtractUseAsLive() local
102 Instruction* operand_inst = def_use_mgr->GetDef(operand_id); in MarkExtractUseAsLive()
120 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkInsertUsesAsLive() local
129 Instruction* operand_inst = def_use_mgr->GetDef(operand_id); in MarkInsertUsesAsLive()
143 Instruction* obj_operand_inst = def_use_mgr->GetDef(obj_operand_id); in MarkInsertUsesAsLive()
154 Instruction* object_inst = def_use_mgr->GetDef(object_id); in MarkInsertUsesAsLive()
167 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkVectorShuffleUsesAsLive() local
171 def_use_mgr->GetDef(current_item.instruction->GetSingleWordInOperand(0)); in MarkVectorShuffleUsesAsLive()
174 def_use_mgr->GetDef(current_item.instruction->GetSingleWordInOperand(1)); in MarkVectorShuffleUsesAsLive()
201 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkCompositeContructUsesAsLive() local
[all …]
Dloop_unswitch_pass.cpp102 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in CreateBasicBlock() local
109 def_use_mgr->AnalyzeInstDef(bb->GetLabelInst()); in CreateBasicBlock()
154 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in PerformUnswitch() local
183 def_use_mgr->AnalyzeInstDef(loop_merge_block->GetLabelInst()); in PerformUnswitch()
252 def_use_mgr->AnalyzeInstDef(loop_pre_header->GetLabelInst()); in PerformUnswitch()
296 def_use_mgr->GetDef(iv_condition->GetOperand(0).words[0]); in PerformUnswitch()
461 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in SpecializeLoop() local
467 def_use_mgr->ForEachUse(to_version_insn, in SpecializeLoop()
492 def_use_mgr->AnalyzeInstUse(inst); in SpecializeLoop()
501 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in IsDynamicallyUniform() local
[all …]
Dloop_peeling.cpp37 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in DuplicateAndConnectLoop() local
118 loop_->GetHeaderBlock()->ForEachPhiInst([cloned_loop_exit, def_use_mgr, in DuplicateAndConnectLoop()
127 def_use_mgr->AnalyzeInstUse(phi); in DuplicateAndConnectLoop()
185 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in GetIteratorUpdateOperations() local
187 iterator->ForEachInId([def_use_mgr, loop, operations, this](uint32_t* id) { in GetIteratorUpdateOperations()
188 Instruction* insn = def_use_mgr->GetDef(*id); in GetIteratorUpdateOperations()
263 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in GetIteratingExitValues() local
272 [condition_block_id, def_use_mgr, this](Instruction* phi) { in GetIteratingExitValues()
278 def_use_mgr->GetDef(phi->GetSingleWordInOperand(i)); in GetIteratingExitValues()
346 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in CreateBlockBefore() local
[all …]
Dreduce_load_size.cpp56 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in ReplaceExtract() local
62 Instruction* composite_inst = def_use_mgr->GetDef(composite_id); in ReplaceExtract()
124 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in ShouldReplaceExtract() local
125 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract()
141 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract()
Dcombine_access_chains.cpp89 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in GetIndexedType() local
92 Instruction* base_ptr = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in GetIndexedType()
105 def_use_mgr->GetDef(inst->GetSingleWordInOperand(i)); in GetIndexedType()
123 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in CombineIndices() local
126 Instruction* last_index_inst = def_use_mgr->GetDef( in CombineIndices()
132 def_use_mgr->GetDef(inst->GetSingleWordInOperand(1)); in CombineIndices()
Dcopy_prop_arrays.cpp220 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in BuildMemoryObjectFromLoad() local
222 Instruction* current_inst = def_use_mgr->GetDef( in BuildMemoryObjectFromLoad()
237 current_inst = def_use_mgr->GetDef(current_inst->GetSingleWordInOperand(0)); in BuildMemoryObjectFromLoad()
358 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in BuildMemoryObjectFromInsert() local
413 def_use_mgr->GetDef(insert_inst->GetSingleWordInOperand(1)); in BuildMemoryObjectFromInsert()
458 def_use_mgr->GetDef(current_insert->GetSingleWordInOperand(1)); in BuildMemoryObjectFromInsert()
478 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in CanUpdateUses() local
491 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses()
572 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in UpdateUses() local
575 def_use_mgr->ForEachUse(original_ptr_inst, in UpdateUses()
[all …]
Dlocal_single_store_elim_pass.cpp189 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in FindUses() local
190 def_use_mgr->ForEachUser(var_inst, [users, this](Instruction* user) { in FindUses()
199 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in FeedsAStore() local
200 return !def_use_mgr->WhileEachUser(inst, [this](Instruction* user) { in FeedsAStore()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dvector_dce.cpp99 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkExtractUseAsLive() local
102 Instruction* operand_inst = def_use_mgr->GetDef(operand_id); in MarkExtractUseAsLive()
120 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkInsertUsesAsLive() local
129 Instruction* operand_inst = def_use_mgr->GetDef(operand_id); in MarkInsertUsesAsLive()
143 Instruction* obj_operand_inst = def_use_mgr->GetDef(obj_operand_id); in MarkInsertUsesAsLive()
154 Instruction* object_inst = def_use_mgr->GetDef(object_id); in MarkInsertUsesAsLive()
167 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkVectorShuffleUsesAsLive() local
171 def_use_mgr->GetDef(current_item.instruction->GetSingleWordInOperand(0)); in MarkVectorShuffleUsesAsLive()
174 def_use_mgr->GetDef(current_item.instruction->GetSingleWordInOperand(1)); in MarkVectorShuffleUsesAsLive()
201 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in MarkCompositeContructUsesAsLive() local
[all …]
Dloop_unswitch_pass.cpp102 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in CreateBasicBlock() local
109 def_use_mgr->AnalyzeInstDef(bb->GetLabelInst()); in CreateBasicBlock()
154 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in PerformUnswitch() local
183 def_use_mgr->AnalyzeInstDef(loop_merge_block->GetLabelInst()); in PerformUnswitch()
252 def_use_mgr->AnalyzeInstDef(loop_pre_header->GetLabelInst()); in PerformUnswitch()
296 def_use_mgr->GetDef(iv_condition->GetOperand(0).words[0]); in PerformUnswitch()
461 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in SpecializeLoop() local
467 def_use_mgr->ForEachUse(to_version_insn, in SpecializeLoop()
492 def_use_mgr->AnalyzeInstUse(inst); in SpecializeLoop()
501 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in IsDynamicallyUniform() local
[all …]
Dloop_peeling.cpp37 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in DuplicateAndConnectLoop() local
118 loop_->GetHeaderBlock()->ForEachPhiInst([cloned_loop_exit, def_use_mgr, in DuplicateAndConnectLoop()
127 def_use_mgr->AnalyzeInstUse(phi); in DuplicateAndConnectLoop()
185 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in GetIteratorUpdateOperations() local
187 iterator->ForEachInId([def_use_mgr, loop, operations, this](uint32_t* id) { in GetIteratorUpdateOperations()
188 Instruction* insn = def_use_mgr->GetDef(*id); in GetIteratorUpdateOperations()
263 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in GetIteratingExitValues() local
272 [condition_block_id, def_use_mgr, this](Instruction* phi) { in GetIteratingExitValues()
278 def_use_mgr->GetDef(phi->GetSingleWordInOperand(i)); in GetIteratingExitValues()
346 analysis::DefUseManager* def_use_mgr = context_->get_def_use_mgr(); in CreateBlockBefore() local
[all …]
Dreduce_load_size.cpp56 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in ReplaceExtract() local
62 Instruction* composite_inst = def_use_mgr->GetDef(composite_id); in ReplaceExtract()
124 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in ShouldReplaceExtract() local
125 Instruction* op_inst = def_use_mgr->GetDef( in ShouldReplaceExtract()
141 !def_use_mgr->WhileEachUser(op_inst, [&elements_used](Instruction* use) { in ShouldReplaceExtract()
Dcombine_access_chains.cpp89 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in GetIndexedType() local
92 Instruction* base_ptr = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in GetIndexedType()
105 def_use_mgr->GetDef(inst->GetSingleWordInOperand(i)); in GetIndexedType()
123 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in CombineIndices() local
126 Instruction* last_index_inst = def_use_mgr->GetDef( in CombineIndices()
132 def_use_mgr->GetDef(inst->GetSingleWordInOperand(1)); in CombineIndices()
Dcopy_prop_arrays.cpp220 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in BuildMemoryObjectFromLoad() local
222 Instruction* current_inst = def_use_mgr->GetDef( in BuildMemoryObjectFromLoad()
237 current_inst = def_use_mgr->GetDef(current_inst->GetSingleWordInOperand(0)); in BuildMemoryObjectFromLoad()
358 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in BuildMemoryObjectFromInsert() local
413 def_use_mgr->GetDef(insert_inst->GetSingleWordInOperand(1)); in BuildMemoryObjectFromInsert()
458 def_use_mgr->GetDef(current_insert->GetSingleWordInOperand(1)); in BuildMemoryObjectFromInsert()
478 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in CanUpdateUses() local
491 return def_use_mgr->WhileEachUse(original_ptr_inst, [this, type_mgr, in CanUpdateUses()
572 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in UpdateUses() local
575 def_use_mgr->ForEachUse(original_ptr_inst, in UpdateUses()
[all …]
Dlocal_single_store_elim_pass.cpp188 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in FindUses() local
189 def_use_mgr->ForEachUser(var_inst, [users, this](Instruction* user) { in FindUses()
198 analysis::DefUseManager* def_use_mgr = context()->get_def_use_mgr(); in FeedsAStore() local
199 return !def_use_mgr->WhileEachUser(inst, [this](Instruction* user) { in FeedsAStore()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dfold_test.cpp84 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
85 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
92 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
728 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
729 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
737 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
810 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
811 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
819 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
862 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/
Dfold_test.cpp84 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
85 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
92 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
728 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
729 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
737 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
810 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
811 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
819 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
862 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
[all …]
/external/angle/third_party/spirv-tools/src/test/opt/
Dfold_test.cpp84 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
85 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
92 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
728 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
729 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
737 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
810 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
811 Instruction* inst = def_use_mgr->GetDef(tc.id_to_fold); in TEST_P()
819 inst = def_use_mgr->GetDef(inst->GetSingleWordInOperand(0)); in TEST_P()
862 analysis::DefUseManager* def_use_mgr = context->get_def_use_mgr(); in TEST_P() local
[all …]

123