/external/mesa3d/src/compiler/nir/ |
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()
|
D | nir_opt_peephole_select.c | 209 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_peephole_select_block() local 213 if (nir_if_last_then_block(if_stmt) != then_block || in nir_opt_peephole_select_block() 225 if (!block_check_for_allowed_instrs(then_block, &count, limit != 0, in nir_opt_peephole_select_block() 246 nir_foreach_instr_safe(instr, then_block) { in nir_opt_peephole_select_block() 270 assert(src->pred == then_block || src->pred == else_block); in nir_opt_peephole_select_block() 273 unsigned idx = src->pred == then_block ? 1 : 2; in nir_opt_peephole_select_block()
|
D | nir_lower_goto_ifs.c | 162 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 …]
|
D | nir_opt_if.c | 818 nir_block *then_block = nir_if_last_then_block(nif); in opt_if_loop_last_continue() local 821 then_ends_in_continue = nir_block_ends_in_continue(then_block); in opt_if_loop_last_continue() 827 if ((then_ends_in_continue || nir_block_ends_in_break(then_block)) && in opt_if_loop_last_continue() 937 nir_block *then_block = nir_if_last_then_block(nif); in opt_if_simplification() local 951 rewrite_phi_predecessor_blocks(nif, then_block, else_block, else_block, in opt_if_simplification() 952 then_block); in opt_if_simplification()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_fs_sel_peephole.cpp | 67 bblock_t *then_block, bblock_t *else_block) in count_movs_from_if() argument 70 foreach_inst_in_block(fs_inst, inst, then_block) { in count_movs_from_if() 142 bblock_t *then_block = block->next(); in opt_peephole_sel() local 145 if (child->block != then_block) { in opt_peephole_sel() 155 int movs = count_movs_from_if(then_mov, else_mov, then_block, else_block); in opt_peephole_sel() 189 const fs_builder ibld = fs_builder(this, then_block, then_mov[i]) in opt_peephole_sel() 216 then_mov[i]->remove(then_block); in opt_peephole_sel()
|
/external/mesa3d/src/compiler/nir/tests/ |
D | opt_if_tests.cpp | 122 nir_block *then_block = nir_if_last_then_block(nif); in TEST_F() local 128 phi_src->pred = then_block; in TEST_F()
|
/external/mesa3d/src/compiler/spirv/ |
D | vtn_cfg.c | 706 struct vtn_block *then_block = vtn_block(b, block->branch[2]); in vtn_process_block() local 709 if (then_block == else_block) { in vtn_process_block() 713 block->branch_type = vtn_handle_branch(b, cf_parent, then_block); in vtn_process_block() 716 return then_block; in vtn_process_block() 743 if_stmt->then_type = vtn_handle_branch(b, &if_stmt->node, then_block); in vtn_process_block() 746 &if_stmt->then_body, then_block); in vtn_process_block() 1273 struct vtn_block *then_block = vtn_block(b, block->branch[2]); in vtn_emit_cf_func_unstructured() local 1276 vtn_add_unstructured_block(b, func, &work_list, then_block); in vtn_emit_cf_func_unstructured() 1277 if (then_block == else_block) { in vtn_emit_cf_func_unstructured() 1278 nir_goto(&b->nb, then_block->block); in vtn_emit_cf_func_unstructured() [all …]
|
/external/angle/third_party/spirv-tools/src/source/opt/ |
D | if_conversion.cpp | 68 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()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | if_conversion.cpp | 68 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()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | if_conversion.cpp | 68 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()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | functional_control_flow_to_cfg.cc | 185 Block* then_block = builder.createBlock(merge_block); in LowerIfOp() local 201 builder.create<CondBranchOp>(loc, cond_i1, then_block, in LowerIfOp()
|
/external/angle/third_party/spirv-tools/src/source/fuzz/ |
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()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | force_render_red.cpp | 343 opt::Operand then_block = {SPV_OPERAND_TYPE_ID, in ForceRenderRed() local 347 false_condition, then_block, else_block}; in ForceRenderRed()
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
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()
|
/external/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection_setup.cpp | 73 nir_block *then_block = nir_if_last_then_block(nif); in sanitize_if() local 75 bool then_jump = nir_block_ends_in_jump(then_block) || nir_block_is_unreachable(then_block); in sanitize_if() 94 nir_block *last_continue_from_blk = else_jump ? then_block : else_block; in sanitize_if()
|
D | aco_instruction_selection.cpp | 9370 unsigned then_block = invert->linear_preds[0]; in visit_phi() local 9377 insert_block = ctx->block->logical_preds[i] == then_block ? invert : ctx->block; in visit_phi()
|
/external/mesa3d/src/broadcom/compiler/ |
D | nir_to_vir.c | 2798 struct qblock *then_block = vir_new_block(c); in ntq_emit_uniform_if() local 2814 vir_link_blocks(c->cur_block, then_block); in ntq_emit_uniform_if() 2817 vir_set_emit_block(c, then_block); in ntq_emit_uniform_if() 2843 struct qblock *then_block = vir_new_block(c); in ntq_emit_nonuniform_if() local 2885 vir_link_blocks(c->cur_block, then_block); in ntq_emit_nonuniform_if() 2888 vir_set_emit_block(c, then_block); in ntq_emit_nonuniform_if()
|
/external/mesa3d/src/panfrost/bifrost/ |
D | bifrost_compile.c | 2169 bi_block *then_block = emit_cf_list(ctx, &nif->then_list); in emit_if() local 2184 assert(then_block); in emit_if() 2200 pan_block_add_successor(&before_block->base, &then_block->base); /* fallthrough */ in emit_if()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_nir_to_llvm.c | 2874 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx->ac.context, fn, ""); in gfx10_ngg_gs_emit_prologue() local 2878 LLVMBuildCondBr(ctx->ac.builder, cond, then_block, merge_block); in gfx10_ngg_gs_emit_prologue() 2879 LLVMPositionBuilderAtEnd(ctx->ac.builder, then_block); in gfx10_ngg_gs_emit_prologue() 4011 LLVMBasicBlockRef then_block = LLVMAppendBasicBlockInContext(ctx.ac.context, fn, ""); in ac_translate_nir_to_llvm() local 4021 LLVMBuildCondBr(ctx.ac.builder, cond, then_block, merge_block); in ac_translate_nir_to_llvm() 4023 LLVMPositionBuilderAtEnd(ctx.ac.builder, then_block); in ac_translate_nir_to_llvm()
|
/external/mesa3d/src/panfrost/midgard/ |
D | midgard_compile.c | 2519 midgard_block *then_block = emit_cf_list(ctx, &nif->then_list); in emit_if() local 2536 assert(then_block); in emit_if() 2552 pan_block_add_successor(&before_block->base, &then_block->base); in emit_if()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_program.c | 1914 struct qblock *then_block = qir_new_block(c); in ntq_emit_if() local 1944 qir_link_blocks(c->cur_block, then_block); in ntq_emit_if() 1947 qir_set_emit_block(c, then_block); in ntq_emit_if()
|
/external/mesa3d/src/amd/llvm/ |
D | ac_nir_to_llvm.c | 1758 LLVMBasicBlockRef start_block = NULL, then_block = NULL; in emit_ssbo_comp_swap_64() local 1767 then_block = LLVMGetInsertBlock(ctx->ac.builder); in emit_ssbo_comp_swap_64() 1798 then_block, in emit_ssbo_comp_swap_64() 4679 nir_block *then_block = (nir_block *)exec_list_get_head(&if_stmt->then_list); in visit_if() local 4681 ac_build_ifcc(&ctx->ac, value, then_block->index); in visit_if() 4692 ac_build_endif(&ctx->ac, then_block->index); in visit_if()
|