Home
last modified time | relevance | path

Searched refs:parent_if (Results 1 – 20 of 20) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_peephole_select.c277 nir_if *parent_if = nir_cf_node_as_if(if_stmt->cf_node.parent); in nir_opt_collapse_if() local
278 if (parent_if->control == nir_selection_control_dont_flatten) in nir_opt_collapse_if()
291 if (exec_list_length(&parent_if->then_list) != 3) in nir_opt_collapse_if()
295 if (!nir_cf_list_is_empty_block(&parent_if->else_list)) in nir_opt_collapse_if()
299 nir_block *last = nir_if_last_then_block(parent_if); in nir_opt_collapse_if()
306 if (parent_if->control == nir_selection_control_flatten) in nir_opt_collapse_if()
317 nir_if_first_else_block(parent_if)); in nir_opt_collapse_if()
323 if (parent_if->control == nir_selection_control_flatten) { in nir_opt_collapse_if()
330 nir_block *first = nir_if_first_then_block(parent_if); in nir_opt_collapse_if()
336 if (count > limit && parent_if->control != nir_selection_control_flatten) in nir_opt_collapse_if()
[all …]
Dnir_repair_ssa.c83 nir_cf_node_as_block(nir_cf_node_prev(&src->parent_if->cf_node)); in repair_ssa_def()
145 nir_cf_node_as_block(nir_cf_node_prev(&src->parent_if->cf_node)); in repair_ssa_def()
156 nir_if_rewrite_condition(src->parent_if, nir_src_for_ssa(block_def)); in repair_ssa_def()
Dnir_to_lcssa.c67 nir_cf_node_as_block(nir_cf_node_prev(&use->parent_if->cf_node)); in is_if_use_inside_loop()
277 nir_if_rewrite_condition(use->parent_if, nir_src_for_ssa(dest)); in convert_loop_exit_for_ssa()
Dnir.c1525 src_add_all_uses(nir_src *src, nir_instr *parent_instr, nir_if *parent_if) in src_add_all_uses() argument
1538 assert(parent_if); in src_add_all_uses()
1539 src->parent_if = parent_if; in src_add_all_uses()
1575 assert(!src_is_valid(src) || src->parent_if == if_stmt); in nir_if_rewrite_condition()
1649 nir_if_rewrite_condition_ssa(use_src->parent_if, use_src, new_ssa); in nir_ssa_def_rewrite_uses()
1662 nir_if_rewrite_condition(use_src->parent_if, new_src); in nir_ssa_def_rewrite_uses_src()
1714 nir_if_rewrite_condition_ssa(use_src->parent_if, in nir_ssa_def_rewrite_uses_after()
1715 &use_src->parent_if->condition, in nir_ssa_def_rewrite_uses_after()
2186 nir_if_rewrite_condition(use_src->parent_if, new_src); in nir_function_impl_lower_instructions()
Dnir_opt_rematerialize_compares.c152 nir_if *const if_stmt = use->parent_if; in nir_opt_rematerialize_compares_impl()
Dnir_opt_sink.c166 nir_cf_node_as_block(nir_cf_node_prev(&use->parent_if->cf_node)); in get_preferred_block()
Dnir_opt_vectorize.c295 nir_if_rewrite_condition(src->parent_if, nir_src_for_ssa(new_alu1)); in instr_try_combine()
331 nir_if_rewrite_condition(src->parent_if, nir_src_for_ssa(new_alu2)); in instr_try_combine()
Dnir_opt_copy_propagate.c131 nir_if_rewrite_condition_ssa(src->parent_if, src, copy->src[0].src.ssa); in copy_propagate_if()
Dnir_opt_dead_cf.c166 nir_cf_node_as_block(nir_cf_node_prev(&use->parent_if->cf_node)); in def_only_used_in_cf_node()
Dnir_opt_if.c1120 nir_if_rewrite_condition(alu_use->parent_if, new_src); in propagate_condition_eval()
1160 nir_if_rewrite_condition(use_src->parent_if, imm_src); in evaluate_condition_use()
1196 if (use_src->parent_if != nif) in opt_if_evaluate_condition_use()
Dnir_opt_gcm.c595 nir_if *if_stmt = use_src->parent_if; in gcm_schedule_late_def()
Dnir_control_flow.c536 if_stmt->condition.parent_if = if_stmt; in update_if_uses()
Dnir.h868 struct nir_if *parent_if; member
4082 nir_cf_node_as_block(nir_cf_node_prev(&src->parent_if->cf_node)); in nir_before_src()
4300 assert(src->parent_if == if_stmt); in nir_if_rewrite_condition_ssa()
Dnir_validate.c226 validate_assert(state, src->parent_if == state->if_stmt); in validate_src()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.h69 } parent_if; member
Daco_instruction_selection.cpp5650 if (ctx->block->loop_nest_depth || ctx->cf_info.parent_if.is_divergent) in visit_discard_if()
5670 if (ctx->block->loop_nest_depth || ctx->cf_info.parent_if.is_divergent) in visit_discard()
5674 ctx->cf_info.parent_if.is_divergent || ctx->cf_info.parent_loop.has_divergent_continue; in visit_discard()
5717 if (!ctx->cf_info.parent_if.is_divergent) { in visit_discard()
8673 if (ctx->block->loop_nest_depth || ctx->cf_info.parent_if.is_divergent) in visit_intrinsic()
8685 if (ctx->block->loop_nest_depth || ctx->cf_info.parent_if.is_divergent) in visit_intrinsic()
9975 lc->divergent_if_old = std::exchange(ctx->cf_info.parent_if.is_divergent, false); in begin_loop()
10060 ctx->cf_info.parent_if.is_divergent = lc->divergent_if_old; in end_loop()
10061 if (!ctx->block->loop_nest_depth && !ctx->cf_info.parent_if.is_divergent) in end_loop()
10078 if (!ctx->cf_info.parent_if.is_divergent && in emit_loop_jump()
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/ir/
Dlima_nir_duplicate_consts.c78 nir_if_rewrite_condition(use_src->parent_if, nir_src_for_ssa(&dupl->def)); in lima_nir_duplicate_load_const()
Dlima_nir_split_loads.c90 nir_if_rewrite_condition(src->parent_if, in replace_intrinsic()
Dlima_nir_duplicate_intrinsic.c93 nir_if_rewrite_condition(use_src->parent_if, nir_src_for_ssa(&dupl->dest.ssa)); in lima_nir_duplicate_intrinsic()
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/
Dnir.c70 if (nir_cf_node_prev(&use->parent_if->cf_node) != in register_node_ssa()