| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| H A D | ir3_lower_subgroups.c | 78 struct ir3_block *then_block = ir3_block_create(ir); local in function:split_block 80 list_add(&then_block->node, &before_block->node); 81 list_add(&after_block->node, &then_block->node); 99 before_block->successors[0] = then_block; 101 before_block->physical_successors[0] = then_block; 103 ir3_block_add_predecessor(then_block, before_block); 105 ir3_block_add_physical_predecessor(then_block, before_block); 108 then_block->successors[0] = after_block; 109 then_block->physical_successors[0] = after_block; 110 ir3_block_add_predecessor(after_block, then_block); 147 struct ir3_block *then_block; local in function:lower_block [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| H A D | nir_opt_conditional_discard.c | 43 nir_block *then_block = nir_if_first_then_block(if_stmt); local in function:nir_opt_conditional_discard_block 53 if (nir_if_last_then_block(if_stmt) != then_block) 55 if (exec_list_is_empty(&then_block->instr_list)) 57 if (exec_list_length(&then_block->instr_list) > 1) 69 if (phi_src->pred == then_block || 78 nir_instr *instr = nir_block_first_instr(then_block);
|
| H A D | nir_opt_peephole_select.c | 198 nir_block *then_block = nir_if_first_then_block(if_stmt); local in function:nir_opt_peephole_select_block 202 if (nir_if_last_then_block(if_stmt) != then_block || 214 if (!block_check_for_allowed_instrs(then_block, &count, limit != 0, 235 nir_foreach_instr_safe(instr, then_block) { 259 assert(src->pred == then_block || src->pred == else_block); 262 unsigned idx = src->pred == then_block ? 1 : 2;
|
| H A D | nir_opt_if.c | 853 nir_block *then_block = nir_if_last_then_block(nif); local in function:opt_if_loop_last_continue 856 then_ends_in_continue = nir_block_ends_in_continue(then_block); 862 if ((then_ends_in_continue || nir_block_ends_in_break(then_block)) && 972 nir_block *then_block = nir_if_last_then_block(nif); local in function:opt_if_simplification 975 rewrite_phi_predecessor_blocks(nif, then_block, else_block, else_block, 976 then_block);
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| H A D | nir_opt_conditional_discard.c | 46 nir_block *then_block = nir_if_first_then_block(if_stmt); local in function:nir_opt_conditional_discard_block 56 if (nir_if_last_then_block(if_stmt) != then_block) 58 if (exec_list_is_empty(&then_block->instr_list)) 60 if (exec_list_length(&then_block->instr_list) > 1) 72 if (phi_src->pred == then_block || 81 nir_instr *instr = nir_block_first_instr(then_block);
|
| H A D | nir_opt_peephole_select.c | 405 nir_block *then_block = nir_if_first_then_block(if_stmt); local in function:nir_opt_peephole_select_block 409 if (nir_if_last_then_block(if_stmt) != then_block || 421 if (!block_check_for_allowed_instrs(then_block, &count, limit, 440 nir_foreach_instr_safe(instr, then_block) { 464 assert(src->pred == then_block || src->pred == else_block); 467 unsigned idx = src->pred == then_block ? 1 : 2;
|
| H A D | nir_lower_goto_ifs.c | 162 nir_block *then_block, nir_block *else_block) 167 if (_mesa_set_search(fork->paths[i].reachable, then_block)) { 191 set_path_vars(b, fork->paths[i].fork, then_block); 238 nir_block *then_block, nir_block *else_block) 240 if (_mesa_set_search(routing->regular.reachable, then_block)) { 243 then_block, else_block); 246 } else if (_mesa_set_search(routing->brk.reachable, then_block)) { 249 then_block, else_block); 253 } else if (_mesa_set_search(routing->cont.reachable, then_block)) { 256 then_block, else_bloc 161 set_path_vars_cond(nir_builder * b,struct path_fork * fork,nir_src condition,nir_block * then_block,nir_block * else_block) argument 237 route_to_cond(nir_builder * b,struct routes * routing,nir_src condition,nir_block * then_block,nir_block * else_block) argument [all...] |
| H A D | nir_opt_if.c | 788 nir_block *then_block = nir_if_last_then_block(nif); local in function:opt_if_loop_last_continue 791 then_ends_in_continue = nir_block_ends_in_continue(then_block); 797 if ((then_ends_in_continue || nir_block_ends_in_break(then_block)) && 907 nir_block *then_block = nir_if_last_then_block(nif); local in function:opt_if_simplification 921 rewrite_phi_predecessor_blocks(nif, then_block, else_block, else_block, 922 then_block);
|
| /xsrc/external/mit/MesaLib.old/dist/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> 67 bblock_t *then_block, bblock_t *else_block) 70 foreach_inst_in_block(fs_inst, inst, then_block) { 142 bblock_t *then_block = block->next(); local in function:fs_visitor::opt_peephole_sel 145 if (child->block != then_block) { 155 int movs = count_movs_from_if(then_mov, else_mov, then_block, else_block); 189 const fs_builder ibld = fs_builder(this, then_block, then_mov[i]) 210 then_mov[i]->remove(then_block); 66 count_movs_from_if(fs_inst * then_mov[MAX_MOVS],fs_inst * else_mov[MAX_MOVS],bblock_t * then_block,bblock_t * else_block) argument
|
| /xsrc/external/mit/MesaLib/dist/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) 71 foreach_inst_in_block(fs_inst, inst, then_block) { 143 bblock_t *then_block = block->next(); local in function:fs_visitor::opt_peephole_sel 146 if (child->block != then_block) { 156 int movs = count_movs_from_if(devinfo, then_mov, else_mov, then_block, else_block); 190 const fs_builder ibld = fs_builder(this, then_block, then_mov[i]) 217 then_mov[i]->remove(then_block); 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) argument
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/tests/ |
| H A D | opt_if_tests.cpp | 122 nir_block *then_block = nir_if_last_then_block(nif); local in function:TEST_F 126 nir_phi_instr_add_src(phi, then_block, nir_src_for_ssa(one));
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/spirv/ |
| H A D | vtn_cfg.c | 747 struct vtn_block *then_block = vtn_block(b, block->branch[2]); local in function:vtn_process_block 748 if_stmt->then_type = vtn_handle_branch(b, &if_stmt->node, then_block); 751 &if_stmt->then_body, then_block); 755 if (then_block != else_block) { 1290 struct vtn_block *then_block = vtn_block(b, block->branch[2]); local in function:vtn_emit_cf_func_unstructured 1293 vtn_add_unstructured_block(b, func, &work_list, then_block); 1294 if (then_block == else_block) { 1295 nir_goto(&b->nb, then_block->block); 1298 nir_goto_if(&b->nb, then_block->block, nir_src_for_ssa(cond),
|
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/spirv/ |
| H A D | vtn_cfg.c | 567 struct vtn_block *then_block = local in function:vtn_cfg_walk_blocks 588 if_stmt->then_type = vtn_get_branch_type(b, then_block, 595 if (then_block == else_block) { 598 block = then_block; 610 vtn_cfg_walk_blocks(b, &if_stmt->then_body, then_block, 637 block = then_block;
|
| /xsrc/external/mit/MesaLib/dist/src/amd/compiler/ |
| H A D | aco_instruction_selection_setup.cpp | 119 nir_block* then_block = nir_if_last_then_block(nif); local in function:aco::__anonb649b1010110::sanitize_if 121 bool then_jump = nir_block_ends_in_jump(then_block) || 122 !is_block_reachable(impl, nir_if_first_then_block(nif), then_block); 142 nir_block* last_continue_from_blk = else_jump ? then_block : else_block;
|
| /xsrc/external/mit/MesaLib.old/dist/src/broadcom/compiler/ |
| H A D | nir_to_vir.c | 1951 struct qblock *then_block = vir_new_block(c); local in function:ntq_emit_uniform_if 1967 vir_link_blocks(c->cur_block, then_block); 1970 vir_set_emit_block(c, then_block); 1997 struct qblock *then_block = vir_new_block(c); local in function:ntq_emit_nonuniform_if 2039 vir_link_blocks(c->cur_block, then_block); 2042 vir_set_emit_block(c, then_block);
|
| /xsrc/external/mit/MesaLib/dist/src/amd/vulkan/ |
| H A D | radv_nir_to_llvm.c | 1706 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx->ac.context, fn, ""); local in function:gfx10_ngg_gs_emit_prologue 1710 LLVMBuildCondBr(ctx->ac.builder, cond, then_block, merge_block); 1711 LLVMPositionBuilderAtEnd(ctx->ac.builder, then_block); 2542 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx.ac.context, fn, ""); local in function:ac_translate_nir_to_llvm 2549 LLVMBuildCondBr(ctx.ac.builder, cond, then_block, merge_block); 2551 LLVMPositionBuilderAtEnd(ctx.ac.builder, then_block);
|
| /xsrc/external/mit/MesaLib/dist/src/broadcom/compiler/ |
| H A D | nir_to_vir.c | 3340 struct qblock *then_block = vir_new_block(c); local in function:ntq_emit_uniform_if 3381 vir_link_blocks(c->cur_block, then_block); 3384 vir_set_emit_block(c, then_block); 3440 struct qblock *then_block = vir_new_block(c); local in function:ntq_emit_nonuniform_if 3482 vir_link_blocks(c->cur_block, then_block); 3485 vir_set_emit_block(c, then_block);
|
| /xsrc/external/mit/MesaLib/dist/src/amd/llvm/ |
| H A D | ac_nir_to_llvm.c | 1884 LLVMBasicBlockRef start_block = NULL, then_block = NULL; local in function:emit_ssbo_comp_swap_64 1893 then_block = LLVMGetInsertBlock(ctx->ac.builder); 1924 then_block, 5206 nir_block *then_block = (nir_block *)exec_list_get_head(&if_stmt->then_list); local in function:visit_if 5208 ac_build_ifcc(&ctx->ac, value, then_block->index); 5219 ac_build_endif(&ctx->ac, then_block->index);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_program.c | 1906 struct qblock *then_block = qir_new_block(c); local in function:ntq_emit_if 1936 qir_link_blocks(c->cur_block, then_block); 1939 qir_set_emit_block(c, then_block);
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| H A D | vc4_program.c | 1911 struct qblock *then_block = qir_new_block(c); local in function:ntq_emit_if 1941 qir_link_blocks(c->cur_block, then_block); 1944 qir_set_emit_block(c, then_block);
|
| /xsrc/external/mit/MesaLib/dist/src/panfrost/bifrost/ |
| H A D | bifrost_compile.c | 2964 bi_block *then_block = emit_cf_list(ctx, &nif->then_list); local in function:emit_if 2976 assert(then_block); 2995 bi_block_add_successor(before_block, then_block); /* fallthrough */
|
| /xsrc/external/mit/MesaLib/dist/src/panfrost/midgard/ |
| H A D | midgard_compile.c | 2838 midgard_block *then_block = emit_cf_list(ctx, &nif->then_list); local in function:emit_if 2855 assert(then_block); 2871 pan_block_add_successor(&before_block->base, &then_block->base);
|
| /xsrc/external/mit/MesaLib.old/dist/src/amd/vulkan/ |
| H A D | radv_nir_to_llvm.c | 3795 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx.ac.context, fn, ""); local in function:ac_translate_nir_to_llvm 3802 LLVMBuildCondBr(ctx.ac.builder, cond, then_block, merge_block); 3804 LLVMPositionBuilderAtEnd(ctx.ac.builder, then_block);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/panfrost/midgard/ |
| H A D | midgard_compile.c | 3686 midgard_block *then_block = emit_cf_list(ctx, &nif->then_list); local in function:emit_if 3701 assert(then_block);
|
| /xsrc/external/mit/MesaLib.old/dist/src/amd/common/ |
| H A D | ac_nir_to_llvm.c | 4230 nir_block *then_block = local in function:visit_if 4233 ac_build_uif(&ctx->ac, value, then_block->index); 4245 ac_build_endif(&ctx->ac, then_block->index);
|