Home
last modified time | relevance | path

Searched refs:then_block (Results 1 – 24 of 24) sorted by relevance

/third_party/mesa3d/src/freedreno/ir3/
Dir3_lower_subgroups.c78 struct ir3_block *then_block = ir3_block_create(ir); in split_block() local
80 list_add(&then_block->node, &before_block->node); in split_block()
81 list_add(&after_block->node, &then_block->node); in split_block()
99 before_block->successors[0] = then_block; in split_block()
101 before_block->physical_successors[0] = then_block; in split_block()
103 ir3_block_add_predecessor(then_block, before_block); in split_block()
105 ir3_block_add_physical_predecessor(then_block, before_block); in split_block()
108 then_block->successors[0] = after_block; in split_block()
109 then_block->physical_successors[0] = after_block; in split_block()
110 ir3_block_add_predecessor(after_block, then_block); in split_block()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_conditional_discard.c46 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_conditional_discard_block() local
56 if (nir_if_last_then_block(if_stmt) != then_block) in nir_opt_conditional_discard_block()
58 if (exec_list_is_empty(&then_block->instr_list)) in nir_opt_conditional_discard_block()
60 if (exec_list_length(&then_block->instr_list) > 1) in nir_opt_conditional_discard_block()
72 if (phi_src->pred == then_block || in nir_opt_conditional_discard_block()
81 nir_instr *instr = nir_block_first_instr(then_block); in nir_opt_conditional_discard_block()
Dnir_opt_peephole_select.c405 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_peephole_select_block() local
409 if (nir_if_last_then_block(if_stmt) != then_block || in nir_opt_peephole_select_block()
421 if (!block_check_for_allowed_instrs(then_block, &count, limit, in nir_opt_peephole_select_block()
440 nir_foreach_instr_safe(instr, then_block) { in nir_opt_peephole_select_block()
464 assert(src->pred == then_block || src->pred == else_block); in nir_opt_peephole_select_block()
467 unsigned idx = src->pred == then_block ? 1 : 2; in nir_opt_peephole_select_block()
Dnir_lower_goto_ifs.c162 nir_block *then_block, nir_block *else_block) in set_path_vars_cond() argument
167 if (_mesa_set_search(fork->paths[i].reachable, then_block)) { in set_path_vars_cond()
191 set_path_vars(b, fork->paths[i].fork, then_block); in set_path_vars_cond()
238 nir_block *then_block, nir_block *else_block) in route_to_cond() argument
240 if (_mesa_set_search(routing->regular.reachable, then_block)) { in route_to_cond()
243 then_block, else_block); in route_to_cond()
246 } else if (_mesa_set_search(routing->brk.reachable, then_block)) { in route_to_cond()
249 then_block, else_block); in route_to_cond()
253 } else if (_mesa_set_search(routing->cont.reachable, then_block)) { in route_to_cond()
256 then_block, else_block); in route_to_cond()
[all …]
Dnir_opt_if.c788 nir_block *then_block = nir_if_last_then_block(nif); in opt_if_loop_last_continue() local
791 then_ends_in_continue = nir_block_ends_in_continue(then_block); in opt_if_loop_last_continue()
797 if ((then_ends_in_continue || nir_block_ends_in_break(then_block)) && in opt_if_loop_last_continue()
907 nir_block *then_block = nir_if_last_then_block(nif); in opt_if_simplification() local
921 rewrite_phi_predecessor_blocks(nif, then_block, else_block, else_block, in opt_if_simplification()
922 then_block); in opt_if_simplification()
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs_sel_peephole.cpp68 bblock_t *then_block, bblock_t *else_block) in count_movs_from_if() argument
71 foreach_inst_in_block(fs_inst, inst, then_block) { in count_movs_from_if()
143 bblock_t *then_block = block->next(); in opt_peephole_sel() local
146 if (child->block != then_block) { in opt_peephole_sel()
156 int movs = count_movs_from_if(devinfo, then_mov, else_mov, then_block, else_block); in opt_peephole_sel()
190 const fs_builder ibld = fs_builder(this, then_block, then_mov[i]) in opt_peephole_sel()
217 then_mov[i]->remove(then_block); in opt_peephole_sel()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dif_conversion.cpp68 BasicBlock* then_block = GetBlock(branch->GetSingleWordInOperand(1u)); in Process() local
71 if ((then_block == &block && inc0 == common) || in Process()
72 dominators->Dominates(then_block, inc0)) { in Process()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dif_conversion.cpp68 BasicBlock* then_block = GetBlock(branch->GetSingleWordInOperand(1u)); in Process() local
71 if ((then_block == &block && inc0 == common) || in Process()
72 dominators->Dominates(then_block, inc0)) { in Process()
/third_party/spirv-tools/source/opt/
Dif_conversion.cpp68 BasicBlock* then_block = GetBlock(branch->GetSingleWordInOperand(1u)); in Process() local
71 if ((then_block == &block && inc0 == common) || in Process()
72 dominators->Dominates(then_block, inc0)) { in Process()
/third_party/mesa3d/src/compiler/nir/tests/
Dopt_if_tests.cpp122 nir_block *then_block = nir_if_last_then_block(nif); in TEST_F() local
126 nir_phi_instr_add_src(phi, then_block, nir_src_for_ssa(one)); in TEST_F()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_cfg.c747 struct vtn_block *then_block = vtn_block(b, block->branch[2]); in vtn_process_block() local
748 if_stmt->then_type = vtn_handle_branch(b, &if_stmt->node, then_block); in vtn_process_block()
751 &if_stmt->then_body, then_block); in vtn_process_block()
755 if (then_block != else_block) { in vtn_process_block()
1290 struct vtn_block *then_block = vtn_block(b, block->branch[2]); in vtn_emit_cf_func_unstructured() local
1293 vtn_add_unstructured_block(b, func, &work_list, then_block); in vtn_emit_cf_func_unstructured()
1294 if (then_block == else_block) { in vtn_emit_cf_func_unstructured()
1295 nir_goto(&b->nb, then_block->block); in vtn_emit_cf_func_unstructured()
1298 nir_goto_if(&b->nb, then_block->block, nir_src_for_ssa(cond), in vtn_emit_cf_func_unstructured()
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/conjure3/
Dcompiler.cpp883 basic_block then_block = make_basic_block("if.then", f); in operator ()() local
890 conditional_branch(condition, then_block, else_block); in operator ()()
895 conditional_branch(condition, then_block, exit_block); in operator ()()
899 set_insert_point(then_block); in operator ()()
902 if (!then_block.has_terminator()) in operator ()()
909 then_block = get_insert_block(); in operator ()()
/third_party/spirv-tools/source/fuzz/
Dforce_render_red.cpp342 opt::Operand then_block = {SPV_OPERAND_TYPE_ID, in ForceRenderRed() local
346 false_condition, then_block, else_block}; in ForceRenderRed()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dforce_render_red.cpp342 opt::Operand then_block = {SPV_OPERAND_TYPE_ID, in ForceRenderRed() local
346 false_condition, then_block, else_block}; in ForceRenderRed()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dforce_render_red.cpp342 opt::Operand then_block = {SPV_OPERAND_TYPE_ID, in ForceRenderRed() local
346 false_condition, then_block, else_block}; in ForceRenderRed()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection_setup.cpp119 nir_block* then_block = nir_if_last_then_block(nif); in sanitize_if() local
121 bool then_jump = nir_block_ends_in_jump(then_block) || in sanitize_if()
122 !is_block_reachable(impl, nir_if_first_then_block(nif), then_block); in sanitize_if()
142 nir_block* last_continue_from_blk = else_jump ? then_block : else_block; in sanitize_if()
Daco_instruction_selection.cpp9906 unsigned then_block = invert->linear_preds[0]; in visit_phi() local
9913 insert_block = ctx->block->logical_preds[i] == then_block ? invert : ctx->block; in visit_phi()
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_to_llvm.c1706 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx->ac.context, fn, ""); in gfx10_ngg_gs_emit_prologue() local
1710 LLVMBuildCondBr(ctx->ac.builder, cond, then_block, merge_block); in gfx10_ngg_gs_emit_prologue()
1711 LLVMPositionBuilderAtEnd(ctx->ac.builder, then_block); in gfx10_ngg_gs_emit_prologue()
2542 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx.ac.context, fn, ""); in ac_translate_nir_to_llvm() local
2549 LLVMBuildCondBr(ctx.ac.builder, cond, then_block, merge_block); in ac_translate_nir_to_llvm()
2551 LLVMPositionBuilderAtEnd(ctx.ac.builder, then_block); in ac_translate_nir_to_llvm()
/third_party/mesa3d/src/broadcom/compiler/
Dnir_to_vir.c3340 struct qblock *then_block = vir_new_block(c); in ntq_emit_uniform_if() local
3381 vir_link_blocks(c->cur_block, then_block); in ntq_emit_uniform_if()
3384 vir_set_emit_block(c, then_block); in ntq_emit_uniform_if()
3440 struct qblock *then_block = vir_new_block(c); in ntq_emit_nonuniform_if() local
3482 vir_link_blocks(c->cur_block, then_block); in ntq_emit_nonuniform_if()
3485 vir_set_emit_block(c, then_block); in ntq_emit_nonuniform_if()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_compile.c2838 midgard_block *then_block = emit_cf_list(ctx, &nif->then_list); in emit_if() local
2855 assert(then_block); in emit_if()
2871 pan_block_add_successor(&before_block->base, &then_block->base); in emit_if()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_program.c1911 struct qblock *then_block = qir_new_block(c); in ntq_emit_if() local
1941 qir_link_blocks(c->cur_block, then_block); in ntq_emit_if()
1944 qir_set_emit_block(c, then_block); in ntq_emit_if()
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c1884 LLVMBasicBlockRef start_block = NULL, then_block = NULL; in emit_ssbo_comp_swap_64() local
1893 then_block = LLVMGetInsertBlock(ctx->ac.builder); in emit_ssbo_comp_swap_64()
1924 then_block, in emit_ssbo_comp_swap_64()
5206 nir_block *then_block = (nir_block *)exec_list_get_head(&if_stmt->then_list); in visit_if() local
5208 ac_build_ifcc(&ctx->ac, value, then_block->index); in visit_if()
5219 ac_build_endif(&ctx->ac, then_block->index); in visit_if()
/third_party/mesa3d/src/panfrost/bifrost/
Dbifrost_compile.c2962 bi_block *then_block = emit_cf_list(ctx, &nif->then_list); in emit_if() local
2974 assert(then_block); in emit_if()
2993 bi_block_add_successor(before_block, then_block); /* fallthrough */ in emit_if()
/third_party/mesa3d/src/microsoft/compiler/
Dnir_to_dxil.c4299 nir_block *then_block = nir_if_first_then_block(if_stmt); in emit_if() local
4313 if (!emit_cond_branch(ctx, cond, then_block->index, in emit_if()