Home
last modified time | relevance | path

Searched refs:alu2 (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_instr_set.c425 const nir_alu_instr *alu2, in nir_alu_srcs_negative_equal() argument
431 nir_alu_instr_channel_used(alu2, src2, i)); in nir_alu_srcs_negative_equal()
436 nir_op_infos[alu2->op].input_types[src2]); in nir_alu_srcs_negative_equal()
439 assert(nir_op_infos[alu2->op].input_types[src2] == nir_type_int); in nir_alu_srcs_negative_equal()
443 if (alu1->src[src1].abs != alu2->src[src2].abs) in nir_alu_srcs_negative_equal()
446 bool parity = alu1->src[src1].negate != alu2->src[src2].negate; in nir_alu_srcs_negative_equal()
461 nir_src_as_const_value(alu2->src[src2].src); in nir_alu_srcs_negative_equal()
467 nir_src_bit_size(alu2->src[src2].src)) in nir_alu_srcs_negative_equal()
475 const2[alu2->src[src2].swizzle[i]], in nir_alu_srcs_negative_equal()
502 nir_alu_instr *neg2 = get_neg_instr(alu2->src[src2].src); in nir_alu_srcs_negative_equal()
[all …]
Dnir_opt_vectorize.c104 nir_alu_instr *alu2 = nir_instr_as_alu(instr2); in instrs_equal() local
106 if (alu1->op != alu2->op) in instrs_equal()
109 if (alu1->dest.dest.ssa.bit_size != alu2->dest.dest.ssa.bit_size) in instrs_equal()
113 if (!alu_srcs_equal(&alu1->src[i], &alu2->src[i])) in instrs_equal()
171 nir_alu_instr *alu2 = nir_instr_as_alu(instr2); in instr_try_combine() local
173 assert(alu1->dest.dest.ssa.bit_size == alu2->dest.dest.ssa.bit_size); in instr_try_combine()
175 unsigned alu2_components = alu2->dest.dest.ssa.num_components; in instr_try_combine()
185 if (filter && !filter(&alu1->instr, &alu2->instr, data)) in instr_try_combine()
200 new_alu->exact = alu1->exact || alu2->exact; in instr_try_combine()
205 new_alu->no_signed_wrap = alu1->no_signed_wrap && alu2->no_signed_wrap; in instr_try_combine()
[all …]
Dnir.h1432 bool nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2,
1436 const nir_alu_instr *alu2,