Home
last modified time | relevance | path

Searched refs:get_instr_block (Results 1 – 25 of 59) sorted by relevance

123

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dif_conversion.cpp80 BasicBlock* true_def_block = context()->get_instr_block(true_value); in Process()
81 BasicBlock* false_def_block = context()->get_instr_block(false_value); in Process()
155 BasicBlock* inc0 = context()->get_instr_block(preds[0]); in CheckBlock()
158 BasicBlock* inc1 = context()->get_instr_block(preds[1]); in CheckBlock()
178 if (user->opcode() == SpvOpPhi && context()->get_instr_block(user) == block) in CheckPhiUsers()
209 return context()->get_instr_block(get_def_use_mgr()->GetDef(id)); in GetBlock()
226 BasicBlock* inst_block = context()->get_instr_block(inst); in HoistInstruction()
260 BasicBlock* inst_block = context()->get_instr_block(inst); in CanHoistInstruction()
Dpropagator.cpp50 if (!BlockHasBeenSimulated(ctx_->get_instr_block(use_instr))) { in AddSSAEdges()
61 BasicBlock* phi_bb = ctx_->get_instr_block(phi); in IsPhiArgExecutable()
65 BasicBlock* in_bb = ctx_->get_instr_block(in_label_instr); in IsPhiArgExecutable()
110 BasicBlock* block = ctx_->get_instr_block(instr); in Simulate()
126 AddControlEdge(Edge(ctx_->get_instr_block(instr), dest_bb)); in Simulate()
220 ctx_->get_instr_block(get_def_use_mgr()->GetDef(label_id)); in Initialize()
Dcode_sink.cpp76 BasicBlock* original_bb = context()->get_instr_block(inst); in FindNewBasicBlockFor()
83 bbs_with_uses.insert(context()->get_instr_block(use)->id()); in FindNewBasicBlockFor()
102 bb = context()->get_instr_block(succ_bb_id); in FindNewBasicBlockFor()
142 bb = context()->get_instr_block(bb->MergeBlockIdIfAny()); in FindNewBasicBlockFor()
160 bb = context()->get_instr_block(bb_used_in); in FindNewBasicBlockFor()
293 BasicBlock* bb = context()->get_instr_block(worklist.back()); in IntersectsPath()
Ddominator_analysis.cpp51 BasicBlock* bb_a = a->context()->get_instr_block(a); in Dominates()
52 BasicBlock* bb_b = b->context()->get_instr_block(b); in Dominates()
Daggressive_dead_code_elim_pass.cpp146 !IsStructuredHeader(context()->get_instr_block(inst), nullptr, nullptr, in IsDead()
256 BasicBlock* header = context()->get_instr_block(mergeInst); in AddBreaksAndContinuesToWorklist()
259 BasicBlock* merge = context()->get_instr_block(mergeId); in AddBreaksAndContinuesToWorklist()
264 BasicBlock* block = context()->get_instr_block(user); in AddBreaksAndContinuesToWorklist()
298 BasicBlock* blk = context()->get_instr_block(user); in AddBreaksAndContinuesToWorklist()
436 BasicBlock* blk = context()->get_instr_block(liveInst); in AggressiveDCE()
Dmerge_return_pass.cpp210 BasicBlock* target_block = context()->get_instr_block(target); in BranchToBlock()
234 MarkForNewPhiNodes(target, context()->get_instr_block(target_pred[0])); in UpdatePhiNodes()
243 BasicBlock* inst_bb = context()->get_instr_block(&inst); in CreatePhiNodesForInst()
252 user_bb = context()->get_instr_block(user); in CreatePhiNodesForInst()
258 user_bb = context()->get_instr_block(user_bb_id); in CreatePhiNodesForInst()
324 BasicBlock* succ_block = context()->get_instr_block(idx); in PredicateBlocks()
356 block = context()->get_instr_block(merge_block_id); in PredicateBlocks()
388 BasicBlock* merge_block = context()->get_instr_block(merge_block_id); in BreakFromConstruct()
Dblock_merge_pass.cpp69 BasicBlock* succ_block = context()->get_instr_block(lab_id); in MergeBlocks()
120 return IsHeader(context()->get_instr_block(get_def_use_mgr()->GetDef(id))); in IsHeader()
Dmerge_return_pass.h130 ->get_instr_block(current_merge_) in CurrentMergeHeader()
141 ? loop_merge_->context()->get_instr_block(loop_merge_)->id() in CurrentLoopHeader()
Ddead_branch_elim_pass.cpp91 return context()->get_instr_block(get_def_use_mgr()->GetDef(id)); in GetParentBlock()
175 context()->get_instr_block(first_break)); in MarkLiveBlocks()
452 BasicBlock* start_block = context()->get_instr_block(start_block_id); in FindFirstExitFromSelectionMerge()
Dscalar_replacement_pass.cpp133 BasicBlock* block = context()->get_instr_block(load); in ReplaceWholeLoad()
183 BasicBlock* block = context()->get_instr_block(store); in ReplaceWholeStore()
249 context()->set_instr_block(&*iter, context()->get_instr_block(chain)); in ReplaceAccessChain()
344 BasicBlock* block = context()->get_instr_block(varInst); in CreateVariable()
Dloop_fission.cpp136 !context_->get_instr_block(user) || in TraverseUseDef()
137 !loop_->IsInsideLoop(context_->get_instr_block(user))) { in TraverseUseDef()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dif_conversion.cpp80 BasicBlock* true_def_block = context()->get_instr_block(true_value); in Process()
81 BasicBlock* false_def_block = context()->get_instr_block(false_value); in Process()
155 BasicBlock* inc0 = context()->get_instr_block(preds[0]); in CheckBlock()
158 BasicBlock* inc1 = context()->get_instr_block(preds[1]); in CheckBlock()
178 if (user->opcode() == SpvOpPhi && context()->get_instr_block(user) == block) in CheckPhiUsers()
209 return context()->get_instr_block(get_def_use_mgr()->GetDef(id)); in GetBlock()
226 BasicBlock* inst_block = context()->get_instr_block(inst); in HoistInstruction()
260 BasicBlock* inst_block = context()->get_instr_block(inst); in CanHoistInstruction()
Dpropagator.cpp50 if (!BlockHasBeenSimulated(ctx_->get_instr_block(use_instr))) { in AddSSAEdges()
61 BasicBlock* phi_bb = ctx_->get_instr_block(phi); in IsPhiArgExecutable()
65 BasicBlock* in_bb = ctx_->get_instr_block(in_label_instr); in IsPhiArgExecutable()
110 BasicBlock* block = ctx_->get_instr_block(instr); in Simulate()
126 AddControlEdge(Edge(ctx_->get_instr_block(instr), dest_bb)); in Simulate()
220 ctx_->get_instr_block(get_def_use_mgr()->GetDef(label_id)); in Initialize()
Ddominator_analysis.cpp51 BasicBlock* bb_a = a->context()->get_instr_block(a); in Dominates()
52 BasicBlock* bb_b = b->context()->get_instr_block(b); in Dominates()
Daggressive_dead_code_elim_pass.cpp146 !IsStructuredHeader(context()->get_instr_block(inst), nullptr, nullptr, in IsDead()
256 BasicBlock* header = context()->get_instr_block(mergeInst); in AddBreaksAndContinuesToWorklist()
259 BasicBlock* merge = context()->get_instr_block(mergeId); in AddBreaksAndContinuesToWorklist()
264 BasicBlock* block = context()->get_instr_block(user); in AddBreaksAndContinuesToWorklist()
298 BasicBlock* blk = context()->get_instr_block(user); in AddBreaksAndContinuesToWorklist()
436 BasicBlock* blk = context()->get_instr_block(liveInst); in AggressiveDCE()
Dblock_merge_pass.cpp69 BasicBlock* succ_block = context()->get_instr_block(lab_id); in MergeBlocks()
120 return IsHeader(context()->get_instr_block(get_def_use_mgr()->GetDef(id))); in IsHeader()
Dmerge_return_pass.cpp210 BasicBlock* target_block = context()->get_instr_block(target); in BranchToBlock()
234 MarkForNewPhiNodes(target, context()->get_instr_block(target_pred[0])); in UpdatePhiNodes()
243 BasicBlock* inst_bb = context()->get_instr_block(&inst); in CreatePhiNodesForInst()
252 user_bb = context()->get_instr_block(user); in CreatePhiNodesForInst()
258 user_bb = context()->get_instr_block(user_bb_id); in CreatePhiNodesForInst()
324 BasicBlock* succ_block = context()->get_instr_block(idx); in PredicateBlocks()
347 next = context()->get_instr_block(state->LoopMergeId()); in PredicateBlocks()
Dmerge_return_pass.h130 ->get_instr_block(current_merge_) in CurrentMergeHeader()
141 ? loop_merge_->context()->get_instr_block(loop_merge_)->id() in CurrentLoopHeader()
Ddead_branch_elim_pass.cpp91 return context()->get_instr_block(get_def_use_mgr()->GetDef(id)); in GetParentBlock()
175 context()->get_instr_block(first_break)); in MarkLiveBlocks()
452 BasicBlock* start_block = context()->get_instr_block(start_block_id); in FindFirstExitFromSelectionMerge()
Dscalar_replacement_pass.cpp133 BasicBlock* block = context()->get_instr_block(load); in ReplaceWholeLoad()
183 BasicBlock* block = context()->get_instr_block(store); in ReplaceWholeStore()
249 context()->set_instr_block(&*iter, context()->get_instr_block(chain)); in ReplaceAccessChain()
344 BasicBlock* block = context()->get_instr_block(varInst); in CreateVariable()
Dloop_fission.cpp136 !context_->get_instr_block(user) || in TraverseUseDef()
137 !loop_->IsInsideLoop(context_->get_instr_block(user))) { in TraverseUseDef()
/external/deqp-deps/SPIRV-Tools/test/opt/
Dir_builder.cpp117 context->get_instr_block(nullptr); in TEST_F()
126 EXPECT_EQ(context->get_instr_block(phi1), nullptr); in TEST_F()
127 EXPECT_EQ(context->get_instr_block(phi2), nullptr); in TEST_F()
138 context->get_instr_block(nullptr); in TEST_F()
150 EXPECT_NE(context->get_instr_block(phi1), nullptr); in TEST_F()
151 EXPECT_NE(context->get_instr_block(phi2), nullptr); in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dir_builder.cpp117 context->get_instr_block(nullptr); in TEST_F()
126 EXPECT_EQ(context->get_instr_block(phi1), nullptr); in TEST_F()
127 EXPECT_EQ(context->get_instr_block(phi2), nullptr); in TEST_F()
138 context->get_instr_block(nullptr); in TEST_F()
150 EXPECT_NE(context->get_instr_block(phi1), nullptr); in TEST_F()
151 EXPECT_NE(context->get_instr_block(phi2), nullptr); in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/source/reduce/
Doperand_to_dominating_id_reduction_pass.cpp85 if (!context->get_instr_block(def)) { in GetOpportunitiesForDominatingInst()
/external/deqp-deps/SPIRV-Tools/source/reduce/
Doperand_to_dominating_id_reduction_pass.cpp85 if (!context->get_instr_block(def)) { in GetOpportunitiesForDominatingInst()

123