Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dif_conversion.cpp226 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument
234 if (dominators->Dominates(inst_block, target_block)) { in HoistInstruction()
245 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in HoistInstruction()
247 HoistInstruction(operand_inst, target_block, dominators); in HoistInstruction()
250 Instruction* insertion_pos = target_block->terminator(); in HoistInstruction()
256 context()->set_instr_block(inst, target_block); in HoistInstruction()
260 BasicBlock* target_block, in CanHoistInstruction() argument
268 if (dominators->Dominates(inst_block, target_block)) { in CanHoistInstruction()
280 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in CanHoistInstruction()
282 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()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dif_conversion.cpp226 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument
234 if (dominators->Dominates(inst_block, target_block)) { in HoistInstruction()
245 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in HoistInstruction()
247 HoistInstruction(operand_inst, target_block, dominators); in HoistInstruction()
250 Instruction* insertion_pos = target_block->terminator(); in HoistInstruction()
256 context()->set_instr_block(inst, target_block); in HoistInstruction()
260 BasicBlock* target_block, in CanHoistInstruction() argument
268 if (dominators->Dominates(inst_block, target_block)) { in CanHoistInstruction()
280 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in CanHoistInstruction()
282 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()
/third_party/spirv-tools/source/opt/
Dif_conversion.cpp225 void IfConversion::HoistInstruction(Instruction* inst, BasicBlock* target_block, in HoistInstruction() argument
233 if (dominators->Dominates(inst_block, target_block)) { in HoistInstruction()
244 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in HoistInstruction()
246 HoistInstruction(operand_inst, target_block, dominators); in HoistInstruction()
249 Instruction* insertion_pos = target_block->terminator(); in HoistInstruction()
255 context()->set_instr_block(inst, target_block); in HoistInstruction()
259 BasicBlock* target_block, in CanHoistInstruction() argument
267 if (dominators->Dominates(inst_block, target_block)) { in CanHoistInstruction()
279 [this, target_block, def_use_mgr, dominators](uint32_t* id) { in CanHoistInstruction()
281 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.cpp241 BasicBlock* target_block = context()->get_instr_block(target); in BranchToBlock() local
242 if (target_block->GetLoopMergeInst()) { in BranchToBlock()
243 cfg()->SplitLoopHeader(target_block); in BranchToBlock()
245 UpdatePhiNodes(block, target_block); in BranchToBlock()
251 new_edges_[target_block].insert(block->id()); in BranchToBlock()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_cfg.cpp461 ValidationState_t& _, BasicBlock* target_block, uint32_t* case_fall_through, in FindCaseFallThrough() argument
465 stack.push_back(target_block); in FindCaseFallThrough()
467 bool target_reachable = target_block->reachable(); in FindCaseFallThrough()
468 int target_depth = function->GetBlockDepth(target_block); in FindCaseFallThrough()
478 target_block->dominates(*block)) { in FindCaseFallThrough()
492 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
494 << _.getIdName(target_block->id()) in FindCaseFallThrough()
501 if (target_block != block) { in FindCaseFallThrough()
506 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
508 << _.getIdName(target_block->id()) in FindCaseFallThrough()
[all …]
/third_party/spirv-tools/source/val/
Dvalidate_cfg.cpp449 ValidationState_t& _, BasicBlock* target_block, uint32_t* case_fall_through, in FindCaseFallThrough() argument
453 stack.push_back(target_block); in FindCaseFallThrough()
455 bool target_reachable = target_block->reachable(); in FindCaseFallThrough()
456 int target_depth = function->GetBlockDepth(target_block); in FindCaseFallThrough()
466 target_block->dominates(*block)) { in FindCaseFallThrough()
480 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
482 << _.getIdName(target_block->id()) in FindCaseFallThrough()
489 if (target_block != block) { in FindCaseFallThrough()
494 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
496 << _.getIdName(target_block->id()) in FindCaseFallThrough()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_cfg.cpp461 ValidationState_t& _, BasicBlock* target_block, uint32_t* case_fall_through, in FindCaseFallThrough() argument
465 stack.push_back(target_block); in FindCaseFallThrough()
467 bool target_reachable = target_block->reachable(); in FindCaseFallThrough()
468 int target_depth = function->GetBlockDepth(target_block); in FindCaseFallThrough()
478 target_block->dominates(*block)) { in FindCaseFallThrough()
492 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
494 << _.getIdName(target_block->id()) in FindCaseFallThrough()
501 if (target_block != block) { in FindCaseFallThrough()
506 return _.diag(SPV_ERROR_INVALID_CFG, target_block->label()) in FindCaseFallThrough()
508 << _.getIdName(target_block->id()) in FindCaseFallThrough()
[all …]
/third_party/mesa3d/src/compiler/spirv/
Dvtn_cfg.c359 struct vtn_block *target_block) in VTN_DECL_CF_NODE_FIND()
366 if (loop && target_block == loop->header_block) in VTN_DECL_CF_NODE_FIND()
370 if (target_block->switch_case) { in VTN_DECL_CF_NODE_FIND()
393 vtn_fail_if(target_block->switch_case == switch_case, in VTN_DECL_CF_NODE_FIND()
397 vtn_fail_if(target_block->switch_case->node.parent != in VTN_DECL_CF_NODE_FIND()
403 switch_case->fallthrough != target_block->switch_case, in VTN_DECL_CF_NODE_FIND()
407 switch_case->fallthrough = target_block->switch_case; in VTN_DECL_CF_NODE_FIND()
415 if (loop && target_block == loop->cont_block) in VTN_DECL_CF_NODE_FIND()
425 if (target_block->merge_cf_node != NULL && in VTN_DECL_CF_NODE_FIND()
426 target_block->merge_cf_node->parent != cf_parent) { in VTN_DECL_CF_NODE_FIND()
[all …]
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/
Dfunction_block.cc410 void FunctionBlock::Jump(const FunctionBlockPtr &target_block, const std::vector<AnfNodePtr> &args)… in Jump() argument
411 MS_LOG(DEBUG) << "Jump from block: " << ToString() << " to block: " << target_block->ToString(); in Jump()
412 MS_EXCEPTION_IF_NULL(target_block); in Jump()
422 input_nodes.emplace_back(NewValueNode(target_block->func_graph())); in Jump()
426 jumps_[target_block.get()] = jump; in Jump()
427 target_block->AddPrevBlock(shared_from_this()); in Jump()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_compile.c1582 br->branch.target_block = ctx->block_count - 1; in emit_fragment_store()
2778 ins.branch.target_block = ctx->block_count - 1; in emit_fragment_epilogue()
2785 return ins.branch.target_block; in emit_fragment_epilogue()
2861 then_branch->branch.target_block = after_else_idx; in emit_if()
2863 then_branch->branch.target_block = else_idx; in emit_if()
2864 then_exit->branch.target_block = after_else_idx; in emit_if()
2895 br_back.branch.target_block = start_idx; in emit_loop()
2925 ins->branch.target_block = break_block_idx; in emit_loop()
3008 unsigned popped = br->branch.target_block; in mir_add_writeout_loops()
3011 br->branch.target_block = emit_fragment_epilogue(ctx, rt, s); 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.c751 int target_number = ins->branch.target_block; in emit_branch()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_glsl.cpp14435 uint32_t target_block = child.true_block; in attempt_emit_loop_header() local
14450 target_block = child.false_block; in attempt_emit_loop_header()
14469 target_block = child.false_block; in attempt_emit_loop_header()
14484 branch(child.self, target_block); in attempt_emit_loop_header()
14853 uint32_t target_block = block_declaration_order[i]; in emit_block_chain() local
14856 get<SPIRBlock>(target_block).ignore_phi_from_block = 0; in emit_block_chain()
14858 auto &literals = case_constructs[target_block]; in emit_block_chain()
14876 flush_phi(block.self, target_block); in emit_block_chain()
14888 flush_phi(block.self, target_block); in emit_block_chain()
14893 get<SPIRBlock>(target_block).ignore_phi_from_block = block.self; in emit_block_chain()
[all …]