Home
last modified time | relevance | path

Searched refs:else_block (Results 1 – 23 of 23) sorted by relevance

/external/mesa3d/src/intel/compiler/
Dbrw_fs_sel_peephole.cpp67 bblock_t *then_block, bblock_t *else_block) in count_movs_from_if() argument
80 foreach_inst_in_block(fs_inst, inst, else_block) { in count_movs_from_if()
143 bblock_t *else_block = NULL; in opt_peephole_sel() local
147 else_block = child->block; in opt_peephole_sel()
152 if (else_block == NULL) in opt_peephole_sel()
155 int movs = count_movs_from_if(then_mov, else_mov, then_block, else_block); in opt_peephole_sel()
217 else_mov[i]->remove(else_block); in opt_peephole_sel()
Dbrw_dead_control_flow.cpp59 bblock_t *const else_block = prev_block; in dead_control_flow_eliminate() local
62 else_inst->remove(else_block); in dead_control_flow_eliminate()
103 bblock_t *const else_block = block; in dead_control_flow_eliminate() local
111 else_inst->remove(else_block); in dead_control_flow_eliminate()
/external/mesa3d/src/compiler/nir/
Dnir_opt_conditional_discard.c47 nir_block *else_block = nir_if_first_else_block(if_stmt); in nir_opt_conditional_discard_block() local
50 if (nir_if_last_else_block(if_stmt) != else_block) in nir_opt_conditional_discard_block()
52 if (!exec_list_is_empty(&else_block->instr_list)) in nir_opt_conditional_discard_block()
73 phi_src->pred == else_block) in nir_opt_conditional_discard_block()
Dnir_opt_peephole_select.c210 nir_block *else_block = nir_if_first_else_block(if_stmt); in nir_opt_peephole_select_block() local
214 nir_if_last_else_block(if_stmt) != else_block) in nir_opt_peephole_select_block()
227 !block_check_for_allowed_instrs(else_block, &count, limit != 0, in nir_opt_peephole_select_block()
252 nir_foreach_instr_safe(instr, else_block) { in nir_opt_peephole_select_block()
270 assert(src->pred == then_block || src->pred == else_block); 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
168 if (_mesa_set_search(fork->paths[i].reachable, else_block)) { in set_path_vars_cond()
192 set_path_vars(b, fork->paths[!i].fork, else_block); in set_path_vars_cond()
238 nir_block *then_block, nir_block *else_block) in route_to_cond() argument
241 if (_mesa_set_search(routing->regular.reachable, else_block)) { in route_to_cond()
243 then_block, else_block); in route_to_cond()
247 if (_mesa_set_search(routing->brk.reachable, else_block)) { in route_to_cond()
249 then_block, else_block); in route_to_cond()
254 if (_mesa_set_search(routing->cont.reachable, else_block)) { in route_to_cond()
256 then_block, else_block); in route_to_cond()
[all …]
Dnir_opt_if.c819 nir_block *else_block = nir_if_last_else_block(nif); in opt_if_loop_last_continue() local
822 else_ends_in_continue = nir_block_ends_in_continue(else_block); in opt_if_loop_last_continue()
828 (else_ends_in_continue || nir_block_ends_in_break(else_block))) in opt_if_loop_last_continue()
938 nir_block *else_block = nir_if_last_else_block(nif); in opt_if_simplification() local
940 if (nir_block_ends_in_jump(else_block)) { in opt_if_simplification()
951 rewrite_phi_predecessor_blocks(nif, then_block, else_block, else_block, in opt_if_simplification()
/external/mesa3d/src/compiler/nir/tests/
Dlower_returns_tests.cpp114 nir_block *else_block = nir_if_last_else_block(nif); in TEST_F() local
121 create_one_source_phi(bld.shader, else_block, one); in TEST_F()
125 create_one_source_phi(bld.shader, else_block, one); in TEST_F()
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dtransformation_replace_opselect_with_conditional_branch.cpp152 uint32_t else_block = in Apply() local
155 assert(if_block != else_block && in Apply()
166 {SPV_OPERAND_TYPE_ID, {else_block}}})); in Apply()
Dforce_render_red.cpp346 opt::Operand else_block = {SPV_OPERAND_TYPE_ID, {new_exit_block_id}}; in ForceRenderRed() local
348 false_condition, then_block, else_block}; in ForceRenderRed()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_replace_opselect_with_conditional_branch.cpp152 uint32_t else_block = in Apply() local
155 assert(if_block != else_block && in Apply()
166 {SPV_OPERAND_TYPE_ID, {else_block}}})); in Apply()
Dforce_render_red.cpp346 opt::Operand else_block = {SPV_OPERAND_TYPE_ID, {new_exit_block_id}}; in ForceRenderRed() local
348 false_condition, then_block, else_block}; in ForceRenderRed()
/external/mesa3d/src/compiler/spirv/
Dvtn_cfg.c707 struct vtn_block *else_block = vtn_block(b, block->branch[3]); in vtn_process_block() local
709 if (then_block == else_block) { in vtn_process_block()
749 if_stmt->else_type = vtn_handle_branch(b, &if_stmt->node, else_block); in vtn_process_block()
752 &if_stmt->else_body, else_block); in vtn_process_block()
1274 struct vtn_block *else_block = vtn_block(b, block->branch[3]); in vtn_emit_cf_func_unstructured() local
1277 if (then_block == else_block) { in vtn_emit_cf_func_unstructured()
1280 vtn_add_unstructured_block(b, func, &work_list, else_block); in vtn_emit_cf_func_unstructured()
1282 else_block->block); in vtn_emit_cf_func_unstructured()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dfunctional_control_flow_to_cfg.cc167 Block* else_block = builder.createBlock(merge_block); in LowerIfOp() local
177 llvm::ArrayRef<Value>(), else_block, in LowerIfOp()
/external/python/cpython3/Grammar/
Dpython.gram159 | 'if' a=named_expression ':' b=block c=[else_block] { _Py_If(a, b, c, EXTRA) }
162 | 'elif' a=named_expression ':' b=block c=[else_block] { _Py_If(a, b, c, EXTRA) }
163 else_block[asdl_seq*]: 'else' ':' b=block { b }
166 | 'while' a=named_expression ':' b=block c=[else_block] { _Py_While(a, b, c, EXTRA) }
169 … | 'for' t=star_targets 'in' ~ ex=star_expressions ':' tc=[TYPE_COMMENT] b=block el=[else_block] {
171 …YNC 'for' t=star_targets 'in' ~ ex=star_expressions ':' tc=[TYPE_COMMENT] b=block el=[else_block] {
191 …| 'try' ':' b=block ex=except_block+ el=[else_block] f=[finally_block] { _Py_Try(b, ex, el, f, EXT…
/external/mesa3d/src/broadcom/compiler/
Dnir_to_vir.c2800 struct qblock *else_block; in ntq_emit_uniform_if() local
2802 else_block = after_block; in ntq_emit_uniform_if()
2804 else_block = vir_new_block(c); in ntq_emit_uniform_if()
2813 vir_link_blocks(c->cur_block, else_block); in ntq_emit_uniform_if()
2826 vir_set_emit_block(c, else_block); in ntq_emit_uniform_if()
2845 struct qblock *else_block; in ntq_emit_nonuniform_if() local
2847 else_block = after_block; in ntq_emit_nonuniform_if()
2849 else_block = vir_new_block(c); in ntq_emit_nonuniform_if()
2877 vir_uniform_ui(c, else_block->index)); in ntq_emit_nonuniform_if()
2884 vir_link_blocks(c->cur_block, else_block); in ntq_emit_nonuniform_if()
[all …]
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection_setup.cpp74 nir_block *else_block = nir_if_last_else_block(nif); in sanitize_if() local
76 bool else_jump = nir_block_ends_in_jump(else_block) || nir_block_is_unreachable(else_block); in sanitize_if()
94 nir_block *last_continue_from_blk = else_jump ? then_block : else_block; in sanitize_if()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_program.c1916 struct qblock *else_block; in ntq_emit_if() local
1918 else_block = after_block; in ntq_emit_if()
1920 else_block = qir_new_block(c); in ntq_emit_if()
1936 qir_uniform_ui(c, else_block->index)); in ntq_emit_if()
1943 qir_link_blocks(c->cur_block, else_block); in ntq_emit_if()
1963 qir_link_blocks(c->cur_block, else_block); in ntq_emit_if()
1965 qir_set_emit_block(c, else_block); in ntq_emit_if()
/external/bcc/src/cc/frontends/b/
Dnode.h405 OnValidStmtNode(IdentExprNode::Ptr cond, StmtNode::Ptr block, StmtNode::Ptr else_block) in OnValidStmtNode() argument
407 else_block_(move(else_block)) {} in OnValidStmtNode()
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
Djsilver.sablecc425 | {missing} else_block
426 {->else_block.command}
429 else_block {->command}
/external/mesa3d/src/panfrost/bifrost/
Dbifrost_compile.c2178 bi_block *else_block = emit_cf_list(ctx, &nif->else_list); in emit_if() local
2185 assert(else_block); in emit_if()
2193 then_branch->branch_target = else_block; in emit_if()
/external/mesa3d/src/panfrost/midgard/
Dmidgard_compile.c2530 midgard_block *else_block = emit_cf_list(ctx, &nif->else_list); in emit_if() local
2537 assert(else_block); in emit_if()
2553 pan_block_add_successor(&before_block->base, &else_block->base); in emit_if()
/external/rust/crates/syn/src/
Dexpr.rs2104 Some(input.call(else_block)?) in parse()
2114 fn else_block(input: ParseStream) -> Result<(Token![else], Box<Expr>)> { in else_block() function
/external/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c4686 nir_block *else_block = (nir_block *)exec_list_get_head(&if_stmt->else_list); in visit_if() local
4688 ac_build_else(&ctx->ac, else_block->index); in visit_if()