/external/mesa3d/src/gallium/drivers/lima/ir/ |
D | lima_nir_duplicate_consts.c | 34 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()
|
D | lima_nir_duplicate_intrinsic.c | 35 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/ |
D | nir_opt_if.c | 1126 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 …]
|
D | nir_opt_gcm.c | 395 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()
|
D | nir_opt_intrinsics.c | 128 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()
|
D | nir_deref.c | 159 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()
|
D | nir.c | 1608 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 …]
|
D | nir_from_ssa.c | 966 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()
|
D | nir_search.c | 655 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/ |
D | etnaviv_compiler_nir.h | 135 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()
|
D | etnaviv_compiler_nir.c | 406 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/ |
D | brw_nir_opt_peephole_ffma.c | 42 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/ |
D | ac_nir_to_llvm.c | 4416 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/ |
D | aco_instruction_selection.cpp | 5929 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()
|