• Home
  • Raw
  • Download

Lines Matching refs:ir_expression

136    ir_visitor_status visit_leave(ir_expression *);
143 void sub_to_add_neg(ir_expression *);
144 void div_to_mul_rcp(ir_expression *);
145 void int_div_to_mul_rcp(ir_expression *);
146 void mod_to_floor(ir_expression *);
147 void exp_to_exp2(ir_expression *);
148 void pow_to_exp2(ir_expression *);
149 void log_to_log2(ir_expression *);
150 void ldexp_to_arith(ir_expression *);
151 void dldexp_to_arith(ir_expression *);
152 void dfrexp_sig_to_arith(ir_expression *);
153 void dfrexp_exp_to_arith(ir_expression *);
154 void carry_to_arith(ir_expression *);
155 void borrow_to_arith(ir_expression *);
156 void sat_to_clamp(ir_expression *);
157 void double_dot_to_fma(ir_expression *);
158 void double_lrp(ir_expression *);
159 void dceil_to_dfrac(ir_expression *);
160 void dfloor_to_dfrac(ir_expression *);
161 void dround_even_to_dfrac(ir_expression *);
162 void dtrunc_to_dfrac(ir_expression *);
163 void dsign_to_csel(ir_expression *);
164 void bit_count_to_math(ir_expression *);
165 void extract_to_shifts(ir_expression *);
166 void insert_to_shifts(ir_expression *);
167 void reverse_to_shifts(ir_expression *ir);
168 void find_lsb_to_float_cast(ir_expression *ir);
169 void find_msb_to_float_cast(ir_expression *ir);
170 void imul_high_to_mul(ir_expression *ir);
171 void sqrt_to_abs_sqrt(ir_expression *ir);
173 ir_expression *_carry(operand a, operand b);
193 lower_instructions_visitor::sub_to_add_neg(ir_expression *ir) in sub_to_add_neg()
197 ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type, in sub_to_add_neg()
203 lower_instructions_visitor::div_to_mul_rcp(ir_expression *ir) in div_to_mul_rcp()
209 expr = new(ir) ir_expression(ir_unop_rcp, in div_to_mul_rcp()
222 lower_instructions_visitor::int_div_to_mul_rcp(ir_expression *ir) in int_div_to_mul_rcp()
238 op1 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[1], NULL); in int_div_to_mul_rcp()
240 op1 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[1], NULL); in int_div_to_mul_rcp()
242 op1 = new(ir) ir_expression(ir_unop_rcp, op1->type, op1, NULL); in int_div_to_mul_rcp()
249 op0 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[0], NULL); in int_div_to_mul_rcp()
251 op0 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[0], NULL); in int_div_to_mul_rcp()
257 op0 = new(ir) ir_expression(ir_binop_mul, vec_type, op0, op1); in int_div_to_mul_rcp()
264 ir->operands[0] = new(ir) ir_expression(ir_unop_f2i, op0); in int_div_to_mul_rcp()
273 lower_instructions_visitor::exp_to_exp2(ir_expression *ir) in exp_to_exp2()
279 ir->operands[0] = new(ir) ir_expression(ir_binop_mul, ir->operands[0]->type, in exp_to_exp2()
285 lower_instructions_visitor::pow_to_exp2(ir_expression *ir) in pow_to_exp2()
287 ir_expression *const log2_x = in pow_to_exp2()
288 new(ir) ir_expression(ir_unop_log2, ir->operands[0]->type, in pow_to_exp2()
293 ir->operands[0] = new(ir) ir_expression(ir_binop_mul, ir->operands[1]->type, in pow_to_exp2()
300 lower_instructions_visitor::log_to_log2(ir_expression *ir) in log_to_log2()
304 ir->operands[0] = new(ir) ir_expression(ir_unop_log2, ir->operands[0]->type, in log_to_log2()
311 lower_instructions_visitor::mod_to_floor(ir_expression *ir) in mod_to_floor()
330 ir_expression *const div_expr = in mod_to_floor()
331 new(ir) ir_expression(ir_binop_div, x->type, in mod_to_floor()
342 ir_expression *const floor_expr = in mod_to_floor()
343 new(ir) ir_expression(ir_unop_floor, x->type, div_expr); in mod_to_floor()
348 ir_expression *const mul_expr = in mod_to_floor()
349 new(ir) ir_expression(ir_binop_mul, in mod_to_floor()
361 lower_instructions_visitor::ldexp_to_arith(ir_expression *ir) in ldexp_to_arith()
535 lower_instructions_visitor::dldexp_to_arith(ir_expression *ir) in dldexp_to_arith()
579 ir_expression *frexp_exp = expr(ir_unop_frexp_exp, x); in dldexp_to_arith()
639 ir_expression *bfi = bitfield_insert( in dldexp_to_arith()
665 lower_instructions_visitor::dfrexp_sig_to_arith(ir_expression *ir) in dfrexp_sig_to_arith()
738 lower_instructions_visitor::dfrexp_exp_to_arith(ir_expression *ir) in dfrexp_exp_to_arith()
791 lower_instructions_visitor::carry_to_arith(ir_expression *ir) in carry_to_arith()
811 lower_instructions_visitor::borrow_to_arith(ir_expression *ir) in borrow_to_arith()
829 lower_instructions_visitor::sat_to_clamp(ir_expression *ir) in sat_to_clamp()
839 ir->operands[0] = new(ir) ir_expression(ir_binop_max, ir->operands[0]->type, in sat_to_clamp()
848 lower_instructions_visitor::double_dot_to_fma(ir_expression *ir) in double_dot_to_fma()
879 lower_instructions_visitor::double_lrp(ir_expression *ir) in double_lrp()
904 lower_instructions_visitor::dceil_to_dfrac(ir_expression *ir) in dceil_to_dfrac()
929 lower_instructions_visitor::dfloor_to_dfrac(ir_expression *ir) in dfloor_to_dfrac()
942 lower_instructions_visitor::dround_even_to_dfrac(ir_expression *ir) in dround_even_to_dfrac()
989 lower_instructions_visitor::dtrunc_to_dfrac(ir_expression *ir) in dtrunc_to_dfrac()
1024 lower_instructions_visitor::dsign_to_csel(ir_expression *ir) in dsign_to_csel()
1048 lower_instructions_visitor::bit_count_to_math(ir_expression *ir) in bit_count_to_math()
1095 lower_instructions_visitor::extract_to_shifts(ir_expression *ir) in extract_to_shifts()
1116 ir_expression *mask = csel(equal(bits, c32), in extract_to_shifts()
1147 ir_expression *expr = in extract_to_shifts()
1171 lower_instructions_visitor::insert_to_shifts(ir_expression *ir) in insert_to_shifts()
1238 lower_instructions_visitor::reverse_to_shifts(ir_expression *ir) in reverse_to_shifts()
1326 lower_instructions_visitor::find_lsb_to_float_cast(ir_expression *ir) in find_lsb_to_float_cast()
1407 lower_instructions_visitor::find_msb_to_float_cast(ir_expression *ir) in find_msb_to_float_cast()
1507 ir_expression *
1518 lower_instructions_visitor::imul_high_to_mul(ir_expression *ir) in imul_high_to_mul()
1663 lower_instructions_visitor::sqrt_to_abs_sqrt(ir_expression *ir) in sqrt_to_abs_sqrt()
1665 ir->operands[0] = new(ir) ir_expression(ir_unop_abs, ir->operands[0]); in sqrt_to_abs_sqrt()
1670 lower_instructions_visitor::visit_leave(ir_expression *ir) in visit_leave()