Home
last modified time | relevance | path

Searched refs:use_src (Results 1 – 14 of 14) sorted by relevance

/external/mesa3d/src/gallium/drivers/lima/ir/
Dlima_nir_duplicate_consts.c34 nir_foreach_use_safe(use_src, &load->def) { in lima_nir_duplicate_load_const()
37 if (last_parent_instr != use_src->parent_instr) { in lima_nir_duplicate_load_const()
39 b->cursor = nir_before_instr(use_src->parent_instr); in lima_nir_duplicate_load_const()
52 nir_instr_rewrite_src(use_src->parent_instr, use_src, nir_src_for_ssa(&dupl->def)); in lima_nir_duplicate_load_const()
53 last_parent_instr = use_src->parent_instr; in lima_nir_duplicate_load_const()
60 nir_foreach_if_use_safe(use_src, &load->def) { in lima_nir_duplicate_load_const()
63 if (last_parent_instr != use_src->parent_instr) { in lima_nir_duplicate_load_const()
78 nir_if_rewrite_condition(use_src->parent_if, nir_src_for_ssa(&dupl->def)); in lima_nir_duplicate_load_const()
79 last_parent_instr = use_src->parent_instr; in lima_nir_duplicate_load_const()
Dlima_nir_duplicate_intrinsic.c35 nir_foreach_use_safe(use_src, &itr->dest.ssa) { in lima_nir_duplicate_intrinsic()
38 if (last_parent_instr != use_src->parent_instr) { in lima_nir_duplicate_intrinsic()
40 b->cursor = nir_before_instr(use_src->parent_instr); in lima_nir_duplicate_intrinsic()
61 nir_instr_rewrite_src(use_src->parent_instr, use_src, nir_src_for_ssa(&dupl->dest.ssa)); in lima_nir_duplicate_intrinsic()
62 last_parent_instr = use_src->parent_instr; in lima_nir_duplicate_intrinsic()
69 nir_foreach_if_use_safe(use_src, &itr->dest.ssa) { in lima_nir_duplicate_intrinsic()
72 if (last_parent_instr != use_src->parent_instr) { in lima_nir_duplicate_intrinsic()
95 nir_if_rewrite_condition(use_src->parent_if, nir_src_for_ssa(&dupl->dest.ssa)); in lima_nir_duplicate_intrinsic()
96 last_parent_instr = use_src->parent_instr; in lima_nir_duplicate_intrinsic()
/external/mesa3d/src/compiler/nir/
Dnir_opt_if.c1126 propagate_condition_eval(nir_builder *b, nir_if *nif, nir_src *use_src, in propagate_condition_eval() argument
1137 if (alu->src[i].src.ssa == use_src->ssa) { in propagate_condition_eval()
1178 evaluate_condition_use(nir_builder *b, nir_if *nif, nir_src *use_src, in evaluate_condition_use() argument
1183 b->cursor = nir_before_src(use_src, is_if_condition); in evaluate_condition_use()
1190 nir_if_rewrite_condition(use_src->parent_if, imm_src); in evaluate_condition_use()
1192 nir_instr_rewrite_src(use_src->parent_instr, use_src, imm_src); in evaluate_condition_use()
1197 if (!is_if_condition && can_propagate_through_alu(use_src)) { in evaluate_condition_use()
1198 nir_alu_instr *alu = nir_instr_as_alu(use_src->parent_instr); in evaluate_condition_use()
1201 progress |= propagate_condition_eval(b, nif, use_src, alu_use, alu, in evaluate_condition_use()
1206 progress |= propagate_condition_eval(b, nif, use_src, alu_use, alu, in evaluate_condition_use()
[all …]
Dnir_opt_gcm.c395 nir_foreach_use(use_src, def) { in gcm_schedule_late_def()
396 nir_instr *use_instr = use_src->parent_instr; in gcm_schedule_late_def()
419 nir_foreach_if_use(use_src, def) { in gcm_schedule_late_def()
420 nir_if *if_stmt = use_src->parent_if; in gcm_schedule_late_def()
501 nir_foreach_use(use_src, def) in gcm_place_instr_def()
502 gcm_place_instr(use_src->parent_instr, state); in gcm_place_instr_def()
Dnir_opt_intrinsics.c128 nir_foreach_use_safe(use_src, &intrin->dest.ssa) { in opt_intrinsics_intrin()
129 if (use_src->parent_instr->type == nir_instr_type_alu) { in opt_intrinsics_intrin()
130 nir_alu_instr *alu = nir_instr_as_alu(use_src->parent_instr); in opt_intrinsics_intrin()
Dnir_deref.c159 nir_foreach_use(use_src, &deref->dest.ssa) { in nir_deref_instr_has_complex_use()
160 nir_instr *use_instr = use_src->parent_instr; in nir_deref_instr_has_complex_use()
172 if (use_src != &use_deref->parent) in nir_deref_instr_has_complex_use()
197 assert(use_src == &use_intrin->src[0]); in nir_deref_instr_has_complex_use()
201 assert(use_src == &use_intrin->src[0] || in nir_deref_instr_has_complex_use()
202 use_src == &use_intrin->src[1]); in nir_deref_instr_has_complex_use()
213 if (use_src == &use_intrin->src[0]) in nir_deref_instr_has_complex_use()
1062 nir_foreach_use_safe(use_src, &cast->dest.ssa) { in opt_deref_cast()
1066 if (is_deref_ptr_as_array(use_src->parent_instr) && in opt_deref_cast()
1070 nir_instr_rewrite_src(use_src->parent_instr, use_src, cast->parent); in opt_deref_cast()
Dnir.c1608 nir_foreach_use_safe(use_src, def) in nir_ssa_def_rewrite_uses()
1609 nir_instr_rewrite_src(use_src->parent_instr, use_src, new_src); in nir_ssa_def_rewrite_uses()
1611 nir_foreach_if_use_safe(use_src, def) in nir_ssa_def_rewrite_uses()
1612 nir_if_rewrite_condition(use_src->parent_if, new_src); in nir_ssa_def_rewrite_uses()
1652 nir_foreach_use_safe(use_src, def) { in nir_ssa_def_rewrite_uses_after()
1653 assert(use_src->parent_instr != def->parent_instr); in nir_ssa_def_rewrite_uses_after()
1658 if (!is_instr_between(def->parent_instr, after_me, use_src->parent_instr)) in nir_ssa_def_rewrite_uses_after()
1659 nir_instr_rewrite_src(use_src->parent_instr, use_src, new_src); in nir_ssa_def_rewrite_uses_after()
1662 nir_foreach_if_use_safe(use_src, def) in nir_ssa_def_rewrite_uses_after()
1663 nir_if_rewrite_condition(use_src->parent_if, new_src); in nir_ssa_def_rewrite_uses_after()
[all …]
Dnir_from_ssa.c966 nir_foreach_use(use_src, def) { in ssa_def_is_local_to_block()
967 if (use_src->parent_instr->block != block || in ssa_def_is_local_to_block()
968 use_src->parent_instr->type == nir_instr_type_phi) { in ssa_def_is_local_to_block()
Dnir_search.c655 nir_foreach_use_safe(use_src, def) { in add_uses_to_worklist()
656 nir_instr_worklist_push_tail(worklist, use_src->parent_instr); in add_uses_to_worklist()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir.h135 nir_foreach_use(use_src, &dest->ssa) { in real_dest()
136 nir_instr *instr = use_src->parent_instr; in real_dest()
163 nir_foreach_use(use_src, &dest->ssa) in real_dest()
164 assert(use_src->parent_instr == instr); in real_dest()
Detnaviv_compiler_nir.c406 nir_foreach_use(use_src, ssa) { in vec_dest_has_swizzle()
407 nir_instr *instr = use_src->parent_instr; in vec_dest_has_swizzle()
840 nir_foreach_use(use_src, ssa) { in lower_alu()
841 if (use_src->parent_instr != &alu->instr) in lower_alu()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_opt_peephole_ffma.c42 nir_foreach_use(use_src, def) { in are_all_uses_fadd()
43 nir_instr *use_instr = use_src->parent_instr; in are_all_uses_fadd()
/external/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c4416 nir_foreach_use (use_src, def) { in is_def_used_in_an_export()
4417 if (use_src->parent_instr->type == nir_instr_type_intrinsic) { in is_def_used_in_an_export()
4418 nir_intrinsic_instr *instr = nir_instr_as_intrinsic(use_src->parent_instr); in is_def_used_in_an_export()
4421 } else if (use_src->parent_instr->type == nir_instr_type_alu) { in is_def_used_in_an_export()
4422 nir_alu_instr *instr = nir_instr_as_alu(use_src->parent_instr); in is_def_used_in_an_export()
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp5929 nir_foreach_use_safe(use_src, &instr->dest.ssa) { in visit_image_atomic()
5933 nir_foreach_if_use_safe(use_src, &instr->dest.ssa) { in visit_image_atomic()
6255 nir_foreach_use_safe(use_src, &instr->dest.ssa) { in visit_atomic_ssbo()
6259 nir_foreach_if_use_safe(use_src, &instr->dest.ssa) { in visit_atomic_ssbo()
6480 nir_foreach_use_safe(use_src, &instr->dest.ssa) { in visit_global_atomic()
6484 nir_foreach_if_use_safe(use_src, &instr->dest.ssa) { in visit_global_atomic()
6796 nir_foreach_use_safe(use_src, &instr->dest.ssa) { in visit_shared_atomic()
6800 nir_foreach_if_use_safe(use_src, &instr->dest.ssa) { in visit_shared_atomic()