Home
last modified time | relevance | path

Searched refs:if_uses (Results 1 – 25 of 28) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir.h129 bool can_bypass_src = !list_length(&dest->ssa.if_uses); in real_dest()
163 assert(list_length(&dest->ssa.if_uses) == 0); in real_dest()
177 if (list_length(&dest->ssa.if_uses) || list_length(&dest->ssa.uses) > 1) in real_dest()
Detnaviv_compiler_nir.c851 bool need_mov = list_length(&ssa->if_uses) != 0; in lower_alu()
/third_party/mesa3d/src/compiler/nir/
Dnir_search_helpers.h297 bool zero_if_use = list_is_empty(&instr->dest.dest.ssa.if_uses); in is_used_once()
306 if (!zero_use && list_is_singular(&instr->dest.dest.ssa.if_uses)) in is_used_once()
309 if (!list_is_singular(&instr->dest.dest.ssa.if_uses) && in is_used_once()
319 return !list_is_empty(&instr->dest.dest.ssa.if_uses); in is_used_by_if()
325 return list_is_empty(&instr->dest.dest.ssa.if_uses); in is_not_used_by_if()
Dnir_validate.c50 struct set *uses, *if_uses, *defs; member
163 _mesa_set_add(reg_state->if_uses, src); in validate_reg_src()
309 list_validate(&def->if_uses); in validate_ssa_def()
534 validate_assert(state, list_is_empty(&instr->dest.ssa.if_uses)); in validate_deref_instr()
1415 list_validate(&reg->if_uses); in prevalidate_reg_decl()
1419 reg_state->if_uses = _mesa_pointer_set_create(reg_state); in prevalidate_reg_decl()
1443 struct set_entry *entry = _mesa_set_search(reg_state->if_uses, src); in postvalidate_reg_decl()
1445 _mesa_set_remove(reg_state->if_uses, entry); in postvalidate_reg_decl()
1447 validate_assert(state, reg_state->if_uses->entries == 0); in postvalidate_reg_decl()
Dnir_opt_uniform_atomics.c249 list_replace(&intrin->dest.ssa.if_uses, &old_result.if_uses); in optimize_and_rewrite_atomic()
Dnir_opt_intrinsics.c42 if (!list_is_empty(&shuffle->dest.ssa.if_uses) || in src_is_single_use_shuffle()
Dnir_lower_to_source_mods.c156 if (!list_is_empty(&alu->dest.dest.ssa.if_uses)) in nir_lower_to_source_mods_block()
Dnir.c152 list_inithead(&reg->if_uses); in reg_create()
1541 list_addtail(&src->use_link, &src->ssa->if_uses); in src_add_all_uses()
1543 list_addtail(&src->use_link, &src->reg.reg->if_uses); in src_add_all_uses()
1614 list_inithead(&def->if_uses); in nir_ssa_def_init()
1760 if (!list_is_empty(&def->if_uses)) in nir_ssa_def_components_read()
2169 list_replace(&old_def->if_uses, &old_if_uses); in nir_function_impl_lower_instructions()
2170 list_inithead(&old_def->if_uses); in nir_function_impl_lower_instructions()
2198 list_replace(&old_if_uses, &old_def->if_uses); in nir_function_impl_lower_instructions()
Dnir_control_flow.c539 &if_stmt->condition.ssa->if_uses); in update_if_uses()
542 &if_stmt->condition.reg.reg->if_uses); in update_if_uses()
Dnir_lower_regs_to_ssa.c287 assert(list_is_empty(&reg->if_uses)); in nir_lower_regs_to_ssa_impl()
Dnir_lower_vec_to_movs.c155 if (!list_is_empty(&vec->src[start_idx].src.ssa->if_uses)) in try_coalesce()
Dnir_opt_peephole_select.c226 if (!list_is_empty(&mov->dest.dest.ssa.if_uses)) in block_check_for_allowed_instrs()
Dnir_opt_phi_precision.c219 if (!list_is_empty(&phi->dest.ssa.if_uses)) in try_move_narrowing_dst()
Dnir.h748 struct list_head if_uses; member
824 struct list_head if_uses; member
897 list_for_each_entry(nir_src, src, &(reg_or_ssa_def)->if_uses, use_link)
900 list_for_each_entry_safe(nir_src, src, &(reg_or_ssa_def)->if_uses, use_link)
4304 list_addtail(&src->use_link, &new_ssa->if_uses); in nir_if_rewrite_condition_ssa()
4336 return list_is_empty(&ssa->uses) && list_is_empty(&ssa->if_uses); in nir_ssa_def_is_unused()
Dnir_from_ssa.c1063 if (!list_is_empty(&def->if_uses)) in ssa_def_is_local_to_block()
Dnir_clone.c219 list_inithead(&nreg->if_uses); in clone_register()
Dnir_opt_if.c496 if (!list_is_empty(&alu->dest.dest.ssa.if_uses) || in opt_split_alu_of_phi()
Dnir_deref.c1112 assert(list_is_empty(&cast->dest.ssa.if_uses)); in opt_deref_cast()
Dnir_serialize.c459 list_inithead(&reg->if_uses); in read_register()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_opt_peephole_ffma.c39 if (!list_is_empty(&def->if_uses)) in are_all_uses_fadd()
156 list_is_empty(&load_const->def.if_uses)) { in any_alu_src_is_a_constant()
/third_party/mesa3d/src/panfrost/midgard/
Dnir_fuse_io_16.c78 if (!list_is_empty(&intr->dest.ssa.if_uses)) in nir_fuse_io_16()
/third_party/mesa3d/src/panfrost/util/
Dnir_mod_helpers.c93 if (!list_is_empty(&dest->ssa.if_uses)) in pan_has_dest_mod()
/third_party/mesa3d/docs/relnotes/
D19.0.2.rst48 - nir: Take if_uses into account when repairing SSA
/third_party/mesa3d/src/compiler/nir/tests/
Dssa_def_bits_used_tests.cpp54 list_is_empty(&def->if_uses); in is_used_once()
/third_party/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi.c271 struct list_head *uses, struct list_head *if_uses) in ntt_try_store_in_tgsi_output() argument
287 if (!list_is_empty(if_uses) || !list_is_singular(uses)) in ntt_try_store_in_tgsi_output()
566 if (!ntt_try_store_in_tgsi_output(c, &decl, &nir_reg->uses, &nir_reg->if_uses)) { in ntt_setup_registers()
744 if (!ntt_try_store_in_tgsi_output(c, &dst, &ssa->uses, &ssa->if_uses)) in ntt_get_ssa_def_decl()

12