/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_fs_sel_peephole.cpp | 46 * A pointer to the bblock_t following the IF is passed as the <then_block> 68 bblock_t *then_block, bblock_t *else_block) in count_movs_from_if() 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() 66 count_movs_from_if(const intel_device_info *devinfo, fs_inst *then_mov[MAX_MOVS], fs_inst *else_mov[MAX_MOVS], bblock_t *then_block, bblock_t *else_block) count_movs_from_if() argument
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_conditional_discard.c | 46 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()
|
H A D | nir_opt_peephole_select.c | 407 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_peephole_select_block() 411 if (nir_if_last_then_block(if_stmt) != then_block || in nir_opt_peephole_select_block() 423 if (!block_check_for_allowed_instrs(then_block, &count, limit, in nir_opt_peephole_select_block() 442 nir_foreach_instr_safe(instr, then_block) { in nir_opt_peephole_select_block() 466 assert(src->pred == then_block || src->pred == else_block); in nir_opt_peephole_select_block() 469 unsigned idx = src->pred == then_block ? 1 : 2; in nir_opt_peephole_select_block()
|
H A D | nir_lower_goto_ifs.c | 162 nir_block *then_block, nir_block *else_block) in set_path_vars_cond() 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() 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_bloc in route_to_cond() 161 set_path_vars_cond(nir_builder *b, struct path_fork *fork, nir_src condition, nir_block *then_block, nir_block *else_block) set_path_vars_cond() argument 237 route_to_cond(nir_builder *b, struct routes *routing, nir_src condition, nir_block *then_block, nir_block *else_block) route_to_cond() argument [all...] |
H A D | nir_opt_if.c | 787 nir_block *then_block = nir_if_last_then_block(nif); in opt_if_loop_last_continue() local 790 then_ends_in_continue = nir_block_ends_in_continue(then_block); in opt_if_loop_last_continue() 796 if ((then_ends_in_continue || nir_block_ends_in_break(then_block)) && in opt_if_loop_last_continue() 911 nir_block *then_block = nir_if_last_then_block(nif); in opt_if_simplification() local 925 rewrite_phi_predecessor_blocks(nif, then_block, else_block, else_block, in opt_if_simplification() 926 then_block); in opt_if_simplification() 944 nir_block *then_block = nir_if_last_then_block(nif); in opt_if_phi_is_condition() local 964 assert(src->pred == then_block || src->pred == else_block); in opt_if_phi_is_condition() 965 enum opt_bool *pred_val = src->pred == then_block ? &then_val : &else_val; in opt_if_phi_is_condition()
|
/third_party/mesa3d/src/freedreno/ir3/ |
H A D | ir3_lower_subgroups.c | 227 struct ir3_block *then_block = ir3_block_create(ir); in create_if() local 228 list_add(&then_block->node, &before_block->node); in create_if() 230 link_blocks(before_block, then_block, 0); in create_if() 232 link_blocks(then_block, after_block, 0); in create_if() 234 return then_block; in create_if() 304 struct ir3_block *then_block = create_if(ir, before_block, after_block); in lower_instr() local 314 mov_immed(instr->dsts[0], then_block, 0); in lower_instr() 317 then_block = create_if(ir, before_block, after_block); in lower_instr() 356 mov_immed(instr->dsts[0], then_block, 1); in lower_instr() 363 ir3_instr_create(then_block, OPC_MOVMS in lower_instr() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | if_conversion.cpp | 62 // branches. If |then_block| dominates |inc0| or if the true edge in Process() 68 BasicBlock* then_block = GetBlock(branch->GetSingleWordInOperand(1u)); in Process() 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/ |
H A D | if_conversion.cpp | 62 // branches. If |then_block| dominates |inc0| or if the true edge in Process() 68 BasicBlock* then_block = GetBlock(branch->GetSingleWordInOperand(1u)); in Process() 71 if ((then_block == &block && inc0 == common) || in Process() 72 dominators->Dominates(then_block, inc0)) { in Process()
|
/third_party/spirv-tools/source/opt/ |
H A D | if_conversion.cpp | 62 // branches. If |then_block| dominates |inc0| or if the true edge in Process() 68 BasicBlock* then_block = GetBlock(branch->GetSingleWordInOperand(1u)); in Process() 71 if ((then_block == &block && inc0 == common) || in Process() 72 dominators->Dominates(then_block, inc0)) { in Process()
|
/third_party/mesa3d/src/compiler/nir/tests/ |
H A D | opt_if_tests.cpp | 122 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/ |
H A D | vtn_cfg.c | 782 struct vtn_block *then_block = vtn_block(b, block->branch[2]); in vtn_process_block() local 783 if_stmt->then_type = vtn_handle_branch(b, &if_stmt->node, then_block); in vtn_process_block() 786 &if_stmt->then_body, then_block); in vtn_process_block() 790 if (then_block != else_block) { in vtn_process_block() 1333 struct vtn_block *then_block = vtn_block(b, block->branch[2]); in vtn_emit_cf_func_unstructured() local 1336 vtn_add_unstructured_block(b, func, &work_list, then_block); in vtn_emit_cf_func_unstructured() 1337 if (then_block == else_block) { in vtn_emit_cf_func_unstructured() 1338 nir_goto(&b->nb, then_block->block); in vtn_emit_cf_func_unstructured() 1341 nir_goto_if(&b->nb, then_block->block, nir_src_for_ssa(cond), in vtn_emit_cf_func_unstructured()
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | force_render_red.cpp | 342 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/ |
H A D | force_render_red.cpp | 342 opt::Operand then_block = {SPV_OPERAND_TYPE_ID, in ForceRenderRed() local 346 false_condition, then_block, else_block}; in ForceRenderRed()
|
/third_party/spirv-tools/source/fuzz/ |
H A D | force_render_red.cpp | 347 opt::Operand then_block = {SPV_OPERAND_TYPE_ID, in ForceRenderRed() local 351 false_condition, then_block, else_block}; in ForceRenderRed()
|
/third_party/mesa3d/src/amd/compiler/ |
H A D | aco_instruction_selection_setup.cpp | 119 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()
|
H A D | aco_instruction_selection.cpp | 10158 unsigned then_block = invert->linear_preds[0]; 10165 insert_block = ctx->block->logical_preds[i] == then_block ? invert : ctx->block;
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_nir_to_llvm.c | 1483 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx.ac.context, fn, ""); in ac_translate_nir_to_llvm() local 1490 LLVMBuildCondBr(ctx.ac.builder, cond, then_block, merge_block); in ac_translate_nir_to_llvm() 1492 LLVMPositionBuilderAtEnd(ctx.ac.builder, then_block); in ac_translate_nir_to_llvm()
|
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | nir_to_vir.c | 3873 struct qblock *then_block = vir_new_block(c); in ntq_emit_uniform_if() local 3914 vir_link_blocks(c->cur_block, then_block); in ntq_emit_uniform_if() 3917 vir_set_emit_block(c, then_block); in ntq_emit_uniform_if() 3973 struct qblock *then_block = vir_new_block(c); in ntq_emit_nonuniform_if() local 4015 vir_link_blocks(c->cur_block, then_block); in ntq_emit_nonuniform_if() 4018 vir_set_emit_block(c, then_block); in ntq_emit_nonuniform_if()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_program.c | 1894 struct qblock *then_block = qir_new_block(c); in ntq_emit_if() local 1924 qir_link_blocks(c->cur_block, then_block); in ntq_emit_if() 1927 qir_set_emit_block(c, then_block); in ntq_emit_if()
|
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | midgard_compile.c | 2925 midgard_block *then_block = emit_cf_list(ctx, &nif->then_list); in emit_if() local 2942 assert(then_block); in emit_if() 2958 pan_block_add_successor(&before_block->base, &then_block->base); in emit_if()
|
/third_party/mesa3d/src/amd/llvm/ |
H A D | ac_nir_to_llvm.c | 1931 LLVMBasicBlockRef start_block = NULL, then_block = NULL; in emit_ssbo_comp_swap_64() local 1940 then_block = LLVMGetInsertBlock(ctx->ac.builder); in emit_ssbo_comp_swap_64() 1971 then_block, in emit_ssbo_comp_swap_64() 5318 nir_block *then_block = (nir_block *)exec_list_get_head(&if_stmt->then_list); in visit_if() local 5320 ac_build_ifcc(&ctx->ac, value, then_block->index); in visit_if() 5331 ac_build_endif(&ctx->ac, then_block->index); in visit_if()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | bifrost_compile.c | 3943 bi_block *then_block = emit_cf_list(ctx, &nif->then_list); in emit_if() local 3955 assert(then_block); in emit_if() 3974 bi_block_add_successor(before_block, then_block); /* fallthrough */ in emit_if()
|
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | nir_to_dxil.c | 5089 nir_block *then_block = nir_if_first_then_block(if_stmt); in emit_if() 5103 if (!emit_cond_branch(ctx, cond, then_block->index, in emit_if()
|