Home
last modified time | relevance | path

Searched refs:use_alu (Results 1 – 5 of 5) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_rematerialize_compares.c140 nir_alu_instr *const use_alu = nir_instr_as_alu(use_instr); in nir_opt_rematerialize_compares_impl() local
141 for (unsigned i = 0; i < nir_op_infos[use_alu->op].num_inputs; i++) { in nir_opt_rematerialize_compares_impl()
142 if (use_alu->src[i].src.ssa == &alu->dest.dest.ssa) { in nir_opt_rematerialize_compares_impl()
143 nir_instr_rewrite_src(&use_alu->instr, in nir_opt_rematerialize_compares_impl()
144 &use_alu->src[i].src, in nir_opt_rematerialize_compares_impl()
Dnir_move_vec_src_uses_to_dest.c141 nir_alu_instr *use_alu = nir_instr_as_alu(use->parent_instr); in move_vec_src_uses_to_dest_block() local
145 unsigned src_idx = use_alu_src - use_alu->src; in move_vec_src_uses_to_dest_block()
146 assert(src_idx < nir_op_infos[use_alu->op].num_inputs); in move_vec_src_uses_to_dest_block()
150 if (!nir_alu_instr_channel_used(use_alu, src_idx, j)) in move_vec_src_uses_to_dest_block()
169 if (!nir_alu_instr_channel_used(use_alu, src_idx, j)) in move_vec_src_uses_to_dest_block()
Dnir_range_analysis.c1743 nir_alu_instr *use_alu = nir_instr_as_alu(src->parent_instr); in ssa_def_bits_used() local
1744 unsigned src_idx = container_of(src, nir_alu_src, src) - use_alu->src; in ssa_def_bits_used()
1759 if (use_alu->dest.dest.ssa.num_components > 1) in ssa_def_bits_used()
1762 switch (use_alu->op) { in ssa_def_bits_used()
1780 if (src_idx == 0 && nir_src_is_const(use_alu->src[1].src)) { in ssa_def_bits_used()
1781 unsigned chunk = nir_src_comp_as_uint(use_alu->src[1].src, in ssa_def_bits_used()
1782 use_alu->src[1].swizzle[0]); in ssa_def_bits_used()
1791 if (src_idx == 0 && nir_src_is_const(use_alu->src[1].src)) { in ssa_def_bits_used()
1792 unsigned chunk = nir_src_comp_as_uint(use_alu->src[1].src, in ssa_def_bits_used()
1793 use_alu->src[1].swizzle[0]); in ssa_def_bits_used()
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_opt_preamble.c58 nir_alu_instr *use_alu = nir_instr_as_alu(use_instr); in all_uses_float() local
60 for (unsigned i = 0; i < nir_op_infos[use_alu->op].num_inputs; i++) { in all_uses_float()
61 if (&use_alu->src[i].src == use) { in all_uses_float()
69 nir_alu_type_get_base_type(nir_op_infos[use_alu->op].input_types[src_index]); in all_uses_float()
89 nir_alu_instr *use_alu = nir_instr_as_alu(use_instr); in all_uses_bit() local
92 switch (use_alu->op) { in all_uses_bit()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_opt_peephole_ffma.c48 nir_alu_instr *use_alu = nir_instr_as_alu(use_instr); in are_all_uses_fadd() local
49 switch (use_alu->op) { in are_all_uses_fadd()
56 assert(use_alu->dest.dest.is_ssa); in are_all_uses_fadd()
57 if (!are_all_uses_fadd(&use_alu->dest.dest.ssa)) in are_all_uses_fadd()