Searched refs:ssa (Results 1 - 25 of 549) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib.old/dist/src/compiler/spirv/
H A Dvtn_amd.c36 val->ssa = vtn_create_ssa_value(b, dest_type);
40 val->ssa->def = nir_cube_face_index(&b->nb, vtn_ssa_value(b, w[5])->def);
43 val->ssa->def = nir_cube_face_coord(&b->nb, vtn_ssa_value(b, w[5])->def);
50 val->ssa->def = nir_pack_64_2x32(&b->nb, &intrin->dest.ssa);
67 val->ssa = vtn_create_ssa_value(b, dest_type);
77 val->ssa->def = nir_fmin3(nb, src[0], src[1], src[2]);
80 val->ssa->def = nir_umin3(nb, src[0], src[1], src[2]);
83 val->ssa->def = nir_imin3(nb, src[0], src[1], src[2]);
86 val->ssa
[all...]
H A Dvtn_subgroup.c56 intrin->num_components = intrin->dest.ssa.num_components;
67 dst->def = &intrin->dest.ssa;
76 val->ssa = vtn_create_ssa_value(b, val->type->type);
87 val->ssa->def = &elect->dest.ssa;
100 val->ssa->def = &ballot->dest.ssa;
120 val->ssa->def = &intrin->dest.ssa;
175 val->ssa
[all...]
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_opt_remove_phis.c32 get_parent_mov(nir_ssa_def *ssa) argument
34 if (ssa->parent_instr->type != nir_instr_type_alu)
37 nir_alu_instr *alu = nir_instr_as_alu(ssa->parent_instr);
42 matching_mov(nir_alu_instr *mov1, nir_ssa_def *ssa) argument
47 nir_alu_instr *mov2 = get_parent_mov(ssa);
95 if (src->src.ssa == &phi->dest.ssa)
99 def = src->src.ssa;
105 if (src->src.ssa != def && !matching_mov(mov, src->src.ssa)) {
[all...]
H A Dnir_lower_fragcoord_wtrans.c62 nir_channel(b, &intr->dest.ssa, 0),
63 nir_channel(b, &intr->dest.ssa, 1),
64 nir_channel(b, &intr->dest.ssa, 2),
65 nir_frcp(b, nir_channel(b, &intr->dest.ssa, 3)));
H A Dnir_divergence_analysis.c27 /* This pass computes for each ssa definition if it is uniform.
65 if (instr->dest.dest.ssa.divergent)
71 if (instr->src[i].src.ssa->divergent) {
72 instr->dest.dest.ssa.divergent = true;
86 if (instr->dest.ssa.divergent)
166 is_divergent = instr->src[0].ssa->divergent;
175 is_divergent = instr->src[0].ssa->divergent ||
176 instr->src[1].ssa->divergent;
185 is_divergent = instr->src[1].ssa->divergent;
190 is_divergent = instr->src[0].ssa
[all...]
H A Dnir_opt_copy_propagate.c38 unsigned num_comp = instr->dest.dest.ssa.num_components;
40 if (instr->src[0].src.ssa->num_components != num_comp)
51 instr->src[i].src.ssa != instr->src[0].src.ssa)
69 unsigned num_comp = mov->dest.dest.ssa.num_components;
75 nir_ssa_def_rewrite_uses(&mov->dest.dest.ssa, new);
93 def = copy->src[0].src.ssa;
98 def = copy->src[src->swizzle[0]].src.ssa;
101 if (copy->src[src->swizzle[i]].src.ssa != def)
120 nir_instr_rewrite_src_ssa(src->parent_instr, src, copy->src[0].src.ssa);
[all...]
H A Dnir_opt_rematerialize_compares.c78 nir_foreach_use(use, &instr->dest.dest.ssa) {
90 if (alu->src[0].src.ssa != &instr->dest.dest.ssa)
127 nir_foreach_use_safe(use, &alu->dest.dest.ssa) {
142 if (use_alu->src[i].src.ssa == &alu->dest.dest.ssa) {
145 nir_src_for_ssa(&clone->dest.dest.ssa));
151 nir_foreach_if_use_safe(use, &alu->dest.dest.ssa) {
168 nir_src_for_ssa(&clone->dest.dest.ssa));
H A Dnir_opt_vectorize.c36 void *hash_data = nir_src_is_const(*src) ? NULL : src->ssa;
66 hash = HASH(hash, alu->dest.dest.ssa.bit_size);
70 alu->dest.dest.ssa.num_components,
82 return src1->ssa == src2->ssa ||
116 if (alu1->dest.dest.ssa.bit_size != alu2->dest.dest.ssa.bit_size)
142 if (alu->dest.dest.ssa.num_components >= 4)
146 (alu->dest.dest.ssa.num_components >= 2 ||
147 alu->dest.dest.ssa
[all...]
H A Dnir_opt_intrinsics.c42 if (!list_is_empty(&shuffle->dest.ssa.if_uses) ||
43 !list_is_singular(&shuffle->dest.ssa.uses))
49 *data = shuffle->src[0].ssa;
50 *index = shuffle->src[1].ssa;
74 alu->src[1].src.ssa->parent_instr->block != alu->instr.block ||
80 alu->src[2].src.ssa->parent_instr->block != alu->instr.block ||
87 nir_ssa_def *index = nir_bcsel(b, alu->src[0].src.ssa, index1, index2);
109 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa,
132 nir_foreach_use_safe(use_src, &intrin->dest.ssa) {
151 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa,
[all...]
H A Dnir_opt_constant_folding.c62 bit_size = alu->dest.dest.ssa.bit_size;
70 bit_size = alu->src[i].src.ssa->bit_size;
72 nir_instr *src_instr = alu->src[i].src.ssa->parent_instr;
98 nir_eval_const_opcode(alu->op, dest, alu->dest.dest.ssa.num_components,
103 nir_ssa_def *imm = nir_build_imm(b, alu->dest.dest.ssa.num_components,
104 alu->dest.dest.ssa.bit_size,
106 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, imm);
220 nir_ssa_def *val = nir_build_imm(b, intrin->dest.ssa.num_components,
221 intrin->dest.ssa.bit_size, v);
222 nir_ssa_def_rewrite_uses(&intrin->dest.ssa, va
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_opt_remove_phis.c32 get_parent_mov(nir_ssa_def *ssa) argument
34 if (ssa->parent_instr->type != nir_instr_type_alu)
37 nir_alu_instr *alu = nir_instr_as_alu(ssa->parent_instr);
42 matching_mov(nir_alu_instr *mov1, nir_ssa_def *ssa) argument
47 nir_alu_instr *mov2 = get_parent_mov(ssa);
95 if (src->src.ssa == &phi->dest.ssa)
99 def = src->src.ssa;
102 if (src->src.ssa != def && !matching_mov(mov, src->src.ssa)) {
[all...]
H A Dnir_gather_ssa_types.c112 copy_types(alu->src[i].src.ssa->index,
113 alu->dest.dest.ssa.index,
120 set_type(alu->src[0].src.ssa->index, nir_type_bool,
122 copy_types(alu->src[1].src.ssa->index,
123 alu->dest.dest.ssa.index,
125 copy_types(alu->src[2].src.ssa->index,
126 alu->dest.dest.ssa.index,
133 set_type(alu->src[i].src.ssa->index, info->input_types[i],
136 set_type(alu->dest.dest.ssa.index, info->output_type,
146 set_type(tex->src[i].src.ssa
[all...]
H A Dnir_lower_subgroups.c37 comp = nir_unpack_64_2x32_split_x(b, intrin->src[0].ssa);
39 comp = nir_unpack_64_2x32_split_y(b, intrin->src[0].ssa);
57 assert(intrin->src[0].ssa->bit_size == 64);
60 return nir_pack_64_2x32_split(b, &intr_x->dest.ssa, &intr_y->dest.ssa);
119 assert(intrin->dest.ssa.num_components > 1);
129 1, intrin->dest.ssa.bit_size, NULL);
143 if (lower_to_32bit && chan_intrin->src[0].ssa->bit_size == 64) {
147 reads[i] = &chan_intrin->dest.ssa;
158 nir_ssa_def *value = intrin->src[0].ssa;
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_nir.c49 intr->dest.ssa.bit_size = 32;
53 nir_ssa_def *ssa = nir_ine(&b, &intr->dest.ssa, nir_imm_int(&b, 0)); local in function:etna_lower_io
55 nir_instr_as_alu(ssa->parent_instr)->op = nir_op_ieq;
57 nir_ssa_def_rewrite_uses_after(&intr->dest.ssa,
58 ssa,
59 ssa->parent_instr);
74 nir_ssa_def *ssa = nir_mov(&b, intr->src[1].ssa); local in function:etna_lower_io
75 nir_alu_instr *alu = nir_instr_as_alu(ssa
182 nir_ssa_def *ssa = &alu->dest.dest.ssa; local in function:etna_lower_alu_impl
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/ir/
H A Dlima_nir_split_load_input.c47 nir_ssa_def *ssa = alu->src[0].src.ssa; local in function:lima_nir_split_load_input_instr
48 if (ssa->parent_instr->type != nir_instr_type_intrinsic)
51 nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(ssa->parent_instr);
80 ssa->bit_size,
91 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa,
92 &new_intrin->dest.ssa);
H A Dlima_nir_lower_uniform_to_scalar.c39 1, intr->dest.ssa.bit_size, NULL);
47 nir_src_for_ssa(nir_imul_imm(b, intr->src[0].ssa, 4));
51 loads[i] = &chan_intr->dest.ssa;
54 nir_ssa_def_rewrite_uses(&intr->dest.ssa,
H A Dlima_nir_duplicate_intrinsic.c35 nir_foreach_use_safe(use_src, &itr->dest.ssa) {
39 /* if ssa use, clone for the target block */
46 dupl->src[0].ssa = itr->src[0].ssa;
51 dupl->num_components, itr->dest.ssa.bit_size, NULL);
60 nir_instr_rewrite_src(use_src->parent_instr, use_src, nir_src_for_ssa(&dupl->dest.ssa));
68 nir_foreach_if_use_safe(use_src, &itr->dest.ssa) {
79 dupl->src[0].ssa = itr->src[0].ssa;
84 dupl->num_components, itr->dest.ssa
[all...]
/xsrc/external/mit/MesaLib/dist/src/intel/vulkan/
H A Danv_nir_lower_ubo_loads.c40 nir_ssa_def *base_addr = load->src[0].ssa;
43 bound = load->src[2].ssa;
45 unsigned bit_size = load->dest.ssa.bit_size;
81 nir_ssa_def *offset = load->src[1].ssa;
94 nir_build_load_global_constant(b, load->dest.ssa.num_components,
95 load->dest.ssa.bit_size, addr,
104 val = nir_build_load_global_constant(b, load->dest.ssa.num_components,
105 load->dest.ssa.bit_size, addr,
112 nir_ssa_def_rewrite_uses(&load->dest.ssa, val);
/xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/
H A Dbrw_nir_opt_peephole_ffma.c58 if (!are_all_uses_fadd(&use_alu->dest.dest.ssa))
77 nir_instr *instr = src->src.ssa->parent_instr;
96 alu = get_mul_for_src(&alu->src[0], alu->dest.dest.ssa.num_components,
101 alu = get_mul_for_src(&alu->src[0], alu->dest.dest.ssa.num_components,
107 alu = get_mul_for_src(&alu->src[0], alu->dest.dest.ssa.num_components,
118 if (!are_all_uses_fadd(&alu->dest.dest.ssa))
153 if (srcs[i].src.ssa->parent_instr->type == nir_instr_type_load_const) {
155 nir_instr_as_load_const (srcs[i].src.ssa->parent_instr);
191 if (add->src[0].src.ssa == add->src[1].src.ssa)
[all...]
/xsrc/external/mit/MesaLib/dist/src/panfrost/midgard/
H A Dnir_fuse_io_16.c78 if (!list_is_empty(&intr->dest.ssa.if_uses))
83 nir_foreach_use(src, &intr->dest.ssa)
89 intr->dest.ssa.bit_size = 16;
96 nir_ssa_def *conv = nir_f2f32(&b, &intr->dest.ssa);
97 nir_ssa_def_rewrite_uses_after(&intr->dest.ssa, conv,
/xsrc/external/mit/MesaLib/dist/src/panfrost/util/
H A Dnir_mod_helpers.c42 if (!src->src.is_ssa || src->src.ssa->parent_instr->type != nir_instr_type_alu)
45 nir_alu_instr *alu = nir_instr_as_alu(src->src.ssa->parent_instr);
93 if (!list_is_empty(&dest->ssa.if_uses))
96 if (!list_is_singular(&dest->ssa.uses))
99 nir_src *use = list_first_entry(&dest->ssa.uses, nir_src, use_link);
H A Dpan_lower_64bit_intrin.c61 intr->dest.ssa.bit_size = 32;
63 nir_ssa_def *conv = nir_u2u64(b, &intr->dest.ssa);
65 nir_ssa_def_rewrite_uses_after(&intr->dest.ssa, conv,
/xsrc/external/mit/MesaLib/dist/src/intel/compiler/
H A Dbrw_nir_opt_peephole_ffma.c57 if (!are_all_uses_fadd(&use_alu->dest.dest.ssa))
76 nir_instr *instr = src->src.ssa->parent_instr;
94 alu = get_mul_for_src(&alu->src[0], alu->dest.dest.ssa.num_components,
99 alu = get_mul_for_src(&alu->src[0], alu->dest.dest.ssa.num_components,
105 alu = get_mul_for_src(&alu->src[0], alu->dest.dest.ssa.num_components,
116 if (!are_all_uses_fadd(&alu->dest.dest.ssa))
151 if (srcs[i].src.ssa->parent_instr->type == nir_instr_type_load_const) {
153 nir_instr_as_load_const (srcs[i].src.ssa->parent_instr);
188 if (add->src[0].src.ssa == add->src[1].src.ssa)
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/lima/ir/
H A Dlima_nir_lower_uniform_to_scalar.c39 1, intr->dest.ssa.bit_size, NULL);
46 nir_src_for_ssa(nir_fmul_imm(b, intr->src[0].ssa, 4));
50 loads[i] = &chan_intr->dest.ssa;
53 nir_ssa_def_rewrite_uses(&intr->dest.ssa,
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/lima/ir/pp/
H A Dlower.c91 dest->ssa.num_components = num_components;
92 dest->ssa.live_in = INT_MAX;
93 dest->ssa.live_out = 0;
269 dest->ssa.num_components = load_tex->src_coords.ssa->num_components;
270 dest->ssa.live_in = INT_MAX;
271 dest->ssa.live_out = 0;
272 dest->write_mask = u_bit_consecutive(0, dest->ssa.num_components);
278 src->ssa = &dest->ssa;
[all...]

Completed in 27 milliseconds

1234567891011>>