/third_party/mesa3d/src/compiler/nir/ |
D | nir_opt_peephole_select.c | 277 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 …]
|
D | nir_repair_ssa.c | 83 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()
|
D | nir_to_lcssa.c | 67 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()
|
D | nir.c | 1525 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()
|
D | nir_opt_rematerialize_compares.c | 152 nir_if *const if_stmt = use->parent_if; in nir_opt_rematerialize_compares_impl()
|
D | nir_opt_sink.c | 166 nir_cf_node_as_block(nir_cf_node_prev(&use->parent_if->cf_node)); in get_preferred_block()
|
D | nir_opt_vectorize.c | 295 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()
|
D | nir_opt_copy_propagate.c | 131 nir_if_rewrite_condition_ssa(src->parent_if, src, copy->src[0].src.ssa); in copy_propagate_if()
|
D | nir_opt_dead_cf.c | 166 nir_cf_node_as_block(nir_cf_node_prev(&use->parent_if->cf_node)); in def_only_used_in_cf_node()
|
D | nir_opt_if.c | 1120 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()
|
D | nir_opt_gcm.c | 595 nir_if *if_stmt = use_src->parent_if; in gcm_schedule_late_def()
|
D | nir_control_flow.c | 536 if_stmt->condition.parent_if = if_stmt; in update_if_uses()
|
D | nir.h | 868 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()
|
D | nir_validate.c | 226 validate_assert(state, src->parent_if == state->if_stmt); in validate_src()
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.h | 69 } parent_if; member
|
D | aco_instruction_selection.cpp | 5650 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/ |
D | lima_nir_duplicate_consts.c | 78 nir_if_rewrite_condition(use_src->parent_if, nir_src_for_ssa(&dupl->def)); in lima_nir_duplicate_load_const()
|
D | lima_nir_split_loads.c | 90 nir_if_rewrite_condition(src->parent_if, in replace_intrinsic()
|
D | lima_nir_duplicate_intrinsic.c | 93 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/ |
D | nir.c | 70 if (nir_cf_node_prev(&use->parent_if->cf_node) != in register_node_ssa()
|