Home
last modified time | relevance | path

Searched refs:if_block (Results 1 - 17 of 17) sorted by relevance

/third_party/mesa3d/src/intel/compiler/
H A Dbrw_dead_control_flow.cpp67 bblock_t *const if_block = prev_block; in dead_control_flow_eliminate() local
73 if (if_block->start_ip == if_block->end_ip) { in dead_control_flow_eliminate()
74 earlier_block = if_block->prev(); in dead_control_flow_eliminate()
76 earlier_block = if_block; in dead_control_flow_eliminate()
78 if_inst->remove(if_block); in dead_control_flow_eliminate()
H A Dbrw_predicated_break.cpp142 bblock_t *if_block = jump_block->prev(); in opt_predicated_break() local
148 bblock_t *earlier_block = if_block; in opt_predicated_break()
149 if (if_block->start_ip == if_block->end_ip) { in opt_predicated_break()
150 earlier_block = if_block->prev(); in opt_predicated_break()
153 if_inst->remove(if_block); in opt_predicated_break()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dloop_unswitch_pass.cpp232 BasicBlock* if_block = loop_->GetPreHeaderBlock(); in PerformUnswitch() local
236 CreateBasicBlock(++FindBasicBlockPosition(if_block)); in PerformUnswitch()
242 if_block->tail()->SetInOperand(0, {loop_pre_header->id()}); in PerformUnswitch()
245 if (Loop* ploop = loop_desc_[if_block]) { in PerformUnswitch()
253 cfg.AddEdge(if_block->id(), loop_pre_header->id()); in PerformUnswitch()
257 [loop_pre_header, if_block](Instruction* phi) { in PerformUnswitch()
258 phi->ForEachInId([loop_pre_header, if_block](uint32_t* id) { in PerformUnswitch()
259 if (*id == if_block->id()) { in PerformUnswitch()
269 DominatorTreeNode* if_block_dtn = dom_tree->GetTreeNode(if_block); in PerformUnswitch()
390 ++FindBasicBlockPosition(if_block)); in PerformUnswitch()
[all...]
H A Dloop_peeling.cpp397 BasicBlock* if_block = loop->GetOrCreatePreHeaderBlock(); in ProtectLoop() local
401 context_->KillInst(&*if_block->tail()); in ProtectLoop()
404 context_, if_block, in ProtectLoop()
410 return if_block; in ProtectLoop()
453 BasicBlock* if_block = in PeelBefore() local
457 [&clone_results, if_block, this](Instruction* phi) { in PeelBefore()
466 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {if_block->id()}}); in PeelBefore()
522 BasicBlock* if_block = ProtectLoop(cloned_loop_, has_remaining_iteration, in PeelAfter() local
532 [&clone_results, if_block, this](Instruction* phi) { in PeelAfter()
555 cloned_preheader_value, if_block in PeelAfter()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dloop_unswitch_pass.cpp232 BasicBlock* if_block = loop_->GetPreHeaderBlock(); in PerformUnswitch() local
236 CreateBasicBlock(++FindBasicBlockPosition(if_block)); in PerformUnswitch()
242 if_block->tail()->SetInOperand(0, {loop_pre_header->id()}); in PerformUnswitch()
245 if (Loop* ploop = loop_desc_[if_block]) { in PerformUnswitch()
253 cfg.AddEdge(if_block->id(), loop_pre_header->id()); in PerformUnswitch()
257 [loop_pre_header, if_block](Instruction* phi) { in PerformUnswitch()
258 phi->ForEachInId([loop_pre_header, if_block](uint32_t* id) { in PerformUnswitch()
259 if (*id == if_block->id()) { in PerformUnswitch()
269 DominatorTreeNode* if_block_dtn = dom_tree->GetTreeNode(if_block); in PerformUnswitch()
390 ++FindBasicBlockPosition(if_block)); in PerformUnswitch()
[all...]
H A Dloop_peeling.cpp397 BasicBlock* if_block = loop->GetOrCreatePreHeaderBlock(); in ProtectLoop() local
401 context_->KillInst(&*if_block->tail()); in ProtectLoop()
404 context_, if_block, in ProtectLoop()
410 return if_block; in ProtectLoop()
453 BasicBlock* if_block = in PeelBefore() local
457 [&clone_results, if_block, this](Instruction* phi) { in PeelBefore()
466 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {if_block->id()}}); in PeelBefore()
522 BasicBlock* if_block = ProtectLoop(cloned_loop_, has_remaining_iteration, in PeelAfter() local
532 [&clone_results, if_block, this](Instruction* phi) { in PeelAfter()
555 cloned_preheader_value, if_block in PeelAfter()
[all...]
/third_party/spirv-tools/source/opt/
H A Dloop_unswitch_pass.cpp225 BasicBlock* if_block = loop_->GetPreHeaderBlock(); in PerformUnswitch() local
229 CreateBasicBlock(++FindBasicBlockPosition(if_block)); in PerformUnswitch()
235 if_block->tail()->SetInOperand(0, {loop_pre_header->id()}); in PerformUnswitch()
238 if (Loop* ploop = loop_desc_[if_block]) { in PerformUnswitch()
246 cfg.AddEdge(if_block->id(), loop_pre_header->id()); in PerformUnswitch()
250 [loop_pre_header, if_block](Instruction* phi) { in PerformUnswitch()
251 phi->ForEachInId([loop_pre_header, if_block](uint32_t* id) { in PerformUnswitch()
252 if (*id == if_block->id()) { in PerformUnswitch()
262 DominatorTreeNode* if_block_dtn = dom_tree->GetTreeNode(if_block); in PerformUnswitch()
383 ++FindBasicBlockPosition(if_block)); in PerformUnswitch()
[all...]
H A Dloop_peeling.cpp398 BasicBlock* if_block = loop->GetOrCreatePreHeaderBlock(); in ProtectLoop() local
402 context_->KillInst(&*if_block->tail()); in ProtectLoop()
405 context_, if_block, in ProtectLoop()
411 return if_block; in ProtectLoop()
454 BasicBlock* if_block = in PeelBefore() local
458 [&clone_results, if_block, this](Instruction* phi) { in PeelBefore()
467 {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {if_block->id()}}); in PeelBefore()
523 BasicBlock* if_block = ProtectLoop(cloned_loop_, has_remaining_iteration, in PeelAfter() local
533 [&clone_results, if_block, this](Instruction* phi) { in PeelAfter()
556 cloned_preheader_value, if_block in PeelAfter()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dtransformation_replace_opselect_with_conditional_branch.cpp144 // |if_block| will be the true block, if it has been created, the instruction in Apply()
146 uint32_t if_block = in Apply() local
154 assert(if_block != else_block && in Apply()
155 "|if_block| and |else_block| should always be different, if the " in Apply()
159 // |if_block| if the condition is true and to |if_false| otherwise. in Apply()
164 {SPV_OPERAND_TYPE_ID, {if_block}}, in Apply()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dtransformation_replace_opselect_with_conditional_branch.cpp144 // |if_block| will be the true block, if it has been created, the instruction in Apply()
146 uint32_t if_block = in Apply() local
154 assert(if_block != else_block && in Apply()
155 "|if_block| and |else_block| should always be different, if the " in Apply()
159 // |if_block| if the condition is true and to |if_false| otherwise. in Apply()
164 {SPV_OPERAND_TYPE_ID, {if_block}}, in Apply()
/third_party/spirv-tools/source/fuzz/
H A Dtransformation_replace_opselect_with_conditional_branch.cpp146 // |if_block| will be the true block, if it has been created, the instruction in Apply()
148 uint32_t if_block = in Apply() local
156 assert(if_block != else_block && in Apply()
157 "|if_block| and |else_block| should always be different, if the " in Apply()
161 // |if_block| if the condition is true and to |if_false| otherwise. in Apply()
166 {SPV_OPERAND_TYPE_ID, {if_block}}, in Apply()
/third_party/node/deps/v8/src/wasm/
H A Dgraph-builder-interface.cc288 void If(FullDecoder* decoder, const Value& cond, Control* if_block) { in If()
311 if_block->merge_env = merge_env; in If()
312 if_block->false_env = false_env; in If()
582 void Else(FullDecoder* decoder, Control* if_block) { in Else()
583 if (if_block->reachable()) { in Else()
585 MergeValuesInto(decoder, if_block, &if_block->end_merge); in Else()
587 SetEnv(if_block->false_env); in Else()
H A Dfunction-body-decoder-impl.h935 F(If, const Value& cond, Control* if_block) \
960 F(Else, Control* if_block) \
2843 Control* if_block = PushControl(kControlIf, 0, 1 + args.length()); in DECODE()
2844 SetBlockType(if_block, imm, args.begin()); in DECODE()
2845 CALL_INTERFACE_IF_OK_AND_REACHABLE(If, cond, if_block); in DECODE()
2848 PushMergeValues(if_block, &if_block->start_merge); in DECODE()
/third_party/mesa3d/src/asahi/compiler/
H A Dagx_compile.c1183 agx_block *if_block = emit_cf_list(ctx, &nif->then_list); in emit_if() local
1195 agx_block_add_successor(first_block, if_block); in emit_if()
/third_party/node/deps/v8/src/wasm/baseline/
H A Dliftoff-compiler.cc1376 void If(FullDecoder* decoder, const Value& cond, Control* if_block) { in If()
1377 DCHECK_EQ(if_block, decoder->control_at(0)); in If()
1378 DCHECK(if_block->is_if()); in If()
1381 if_block->else_state = std::make_unique<ElseState>(); in If()
1384 JumpIfFalse(decoder, if_block->else_state->label.get()); in If()
1387 if_block->else_state->state.Split(*__ cache_state()); in If()
1389 PushControl(if_block); in If()
/third_party/mesa3d/src/amd/llvm/
H A Dac_llvm_build.c2994 LLVMBasicBlockRef if_block; in ac_build_ifcc() local
2996 if_block = append_basic_block(ctx, "IF"); in ac_build_ifcc()
2998 set_basicblock_name(if_block, "if", label_id); in ac_build_ifcc()
2999 LLVMBuildCondBr(ctx->builder, cond, if_block, flow->next_block); in ac_build_ifcc()
3000 LLVMPositionBuilderAtEnd(ctx->builder, if_block); in ac_build_ifcc()
/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A Dfunction.cc3339 auto* if_block = create<ast::BlockStatement>(Source{}, if_stmts); in MakeSimpleIf() local
3341 create<ast::IfStatement>(Source{}, condition, if_block, else_stmts); in MakeSimpleIf()

Completed in 44 milliseconds