Home
last modified time | relevance | path

Searched refs:target_block (Results 1 – 17 of 17) sorted by relevance

/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dif_conversion.cpp236 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument
244 if (dominators->Dominates(inst_block, target_block)) { in HoistInstruction()
255 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in HoistInstruction()
257 HoistInstruction(operand_inst, target_block, dominators); in HoistInstruction()
260 Instruction* insertion_pos = target_block->terminator(); in HoistInstruction()
266 context()->set_instr_block(inst, target_block); in HoistInstruction()
270 BasicBlock* target_block, in CanHoistInstruction() argument
278 if (dominators->Dominates(inst_block, target_block)) { in CanHoistInstruction()
290 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in CanHoistInstruction()
292 return CanHoistInstruction(operand_inst, target_block, dominators); in CanHoistInstruction()
Dif_conversion.h77 void HoistInstruction(Instruction* inst, BasicBlock* target_block,
82 bool CanHoistInstruction(Instruction* inst, BasicBlock* target_block,
Dmerge_return_pass.cpp247 BasicBlock* target_block = context()->get_instr_block(target); in BranchToBlock() local
248 if (target_block->GetLoopMergeInst()) { in BranchToBlock()
249 cfg()->SplitLoopHeader(target_block); in BranchToBlock()
251 UpdatePhiNodes(block, target_block); in BranchToBlock()
257 new_edges_[target_block].insert(block->id()); in BranchToBlock()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dif_conversion.cpp233 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument
241 if (dominators->Dominates(inst_block, target_block)) { in HoistInstruction()
252 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in HoistInstruction()
254 HoistInstruction(operand_inst, target_block, dominators); in HoistInstruction()
257 Instruction* insertion_pos = target_block->terminator(); in HoistInstruction()
263 context()->set_instr_block(inst, target_block); in HoistInstruction()
267 BasicBlock* target_block, in CanHoistInstruction() argument
275 if (dominators->Dominates(inst_block, target_block)) { in CanHoistInstruction()
287 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in CanHoistInstruction()
289 return CanHoistInstruction(operand_inst, target_block, dominators); in CanHoistInstruction()
Dif_conversion.h77 void HoistInstruction(Instruction* inst, BasicBlock* target_block,
82 bool CanHoistInstruction(Instruction* inst, BasicBlock* target_block,
Dmerge_return_pass.cpp243 BasicBlock* target_block = context()->get_instr_block(target); in BranchToBlock() local
244 if (target_block->GetLoopMergeInst()) { in BranchToBlock()
245 cfg()->SplitLoopHeader(target_block); in BranchToBlock()
247 UpdatePhiNodes(block, target_block); in BranchToBlock()
253 new_edges_[target_block].insert(block->id()); in BranchToBlock()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dif_conversion.cpp236 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument
244 if (dominators->Dominates(inst_block, target_block)) { in HoistInstruction()
255 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in HoistInstruction()
257 HoistInstruction(operand_inst, target_block, dominators); in HoistInstruction()
260 Instruction* insertion_pos = target_block->terminator(); in HoistInstruction()
266 context()->set_instr_block(inst, target_block); in HoistInstruction()
270 BasicBlock* target_block, in CanHoistInstruction() argument
278 if (dominators->Dominates(inst_block, target_block)) { in CanHoistInstruction()
290 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in CanHoistInstruction()
292 return CanHoistInstruction(operand_inst, target_block, dominators); in CanHoistInstruction()
Dif_conversion.h77 void HoistInstruction(Instruction* inst, BasicBlock* target_block,
82 bool CanHoistInstruction(Instruction* inst, BasicBlock* target_block,
Dmerge_return_pass.cpp247 BasicBlock* target_block = context()->get_instr_block(target); in BranchToBlock() local
248 if (target_block->GetLoopMergeInst()) { in BranchToBlock()
249 cfg()->SplitLoopHeader(target_block); in BranchToBlock()
251 UpdatePhiNodes(block, target_block); in BranchToBlock()
257 new_edges_[target_block].insert(block->id()); in BranchToBlock()
/external/mesa3d/src/compiler/spirv/
Dvtn_cfg.c346 struct vtn_block *target_block) in VTN_DECL_CF_NODE_FIND()
353 if (loop && target_block == loop->header_block) in VTN_DECL_CF_NODE_FIND()
357 if (target_block->switch_case) { in VTN_DECL_CF_NODE_FIND()
380 vtn_fail_if(target_block->switch_case == switch_case, in VTN_DECL_CF_NODE_FIND()
384 vtn_fail_if(target_block->switch_case->node.parent != in VTN_DECL_CF_NODE_FIND()
390 switch_case->fallthrough != target_block->switch_case, in VTN_DECL_CF_NODE_FIND()
394 switch_case->fallthrough = target_block->switch_case; in VTN_DECL_CF_NODE_FIND()
402 if (loop && target_block == loop->cont_block) in VTN_DECL_CF_NODE_FIND()
412 if (target_block->merge_cf_node != NULL && in VTN_DECL_CF_NODE_FIND()
413 target_block->merge_cf_node->parent != cf_parent) { in VTN_DECL_CF_NODE_FIND()
[all …]
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp464 ValidationState_t& _, BasicBlock* target_block, uint32_t* case_fall_through, in FindCaseFallThrough() argument
468 stack.push_back(target_block); in FindCaseFallThrough()
470 bool target_reachable = target_block->structurally_reachable(); in FindCaseFallThrough()
471 int target_depth = function->GetBlockDepth(target_block); in FindCaseFallThrough()
481 target_block->structurally_dominates(*block)) { in FindCaseFallThrough()
495 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
497 << _.getIdName(target_block->id()) in FindCaseFallThrough()
504 if (target_block != block) { in FindCaseFallThrough()
509 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
511 << _.getIdName(target_block->id()) in FindCaseFallThrough()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/
Dvalidate_cfg.cpp467 ValidationState_t& _, BasicBlock* target_block, uint32_t* case_fall_through, in FindCaseFallThrough() argument
471 stack.push_back(target_block); in FindCaseFallThrough()
473 bool target_reachable = target_block->structurally_reachable(); in FindCaseFallThrough()
474 int target_depth = function->GetBlockDepth(target_block); in FindCaseFallThrough()
484 target_block->structurally_dominates(*block)) { in FindCaseFallThrough()
498 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
500 << _.getIdName(target_block->id()) in FindCaseFallThrough()
507 if (target_block != block) { in FindCaseFallThrough()
512 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
514 << _.getIdName(target_block->id()) in FindCaseFallThrough()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp470 ValidationState_t& _, BasicBlock* target_block, uint32_t* case_fall_through, in FindCaseFallThrough() argument
474 stack.push_back(target_block); in FindCaseFallThrough()
476 bool target_reachable = target_block->structurally_reachable(); in FindCaseFallThrough()
477 int target_depth = function->GetBlockDepth(target_block); in FindCaseFallThrough()
487 target_block->structurally_dominates(*block)) { in FindCaseFallThrough()
501 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
503 << _.getIdName(target_block->id()) in FindCaseFallThrough()
510 if (target_block != block) { in FindCaseFallThrough()
515 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
517 << _.getIdName(target_block->id()) in FindCaseFallThrough()
[all …]
/external/mesa3d/src/panfrost/midgard/
Dmidgard_compile.c1363 br->branch.target_block = ctx->block_count - 1; in emit_fragment_store()
2459 ins.branch.target_block = ctx->block_count - 1; in emit_fragment_epilogue()
2466 return ins.branch.target_block; in emit_fragment_epilogue()
2542 then_branch->branch.target_block = after_else_idx; in emit_if()
2544 then_branch->branch.target_block = else_idx; in emit_if()
2545 then_exit->branch.target_block = after_else_idx; in emit_if()
2576 br_back.branch.target_block = start_idx; in emit_loop()
2606 ins->branch.target_block = break_block_idx; in emit_loop()
2688 unsigned popped = br->branch.target_block; in mir_add_writeout_loops()
2690 br->branch.target_block = emit_fragment_epilogue(ctx, rt); in mir_add_writeout_loops()
[all …]
Dmidgard_print.c199 ins->branch.target_block); in mir_print_instruction()
Dcompiler.h69 int target_block; member
Dmidgard_emit.c642 int target_number = ins->branch.target_block; in emit_branch()