Home | History | Annotate | Download | only in glsl

Lines Matching refs:ir_expression

94    ir_visitor_status visit_leave(ir_expression *);
101 void sub_to_add_neg(ir_expression *);
102 void div_to_mul_rcp(ir_expression *);
103 void int_div_to_mul_rcp(ir_expression *);
104 void mod_to_fract(ir_expression *);
105 void exp_to_exp2(ir_expression *);
106 void pow_to_exp2(ir_expression *);
107 void log_to_log2(ir_expression *);
125 lower_instructions_visitor::sub_to_add_neg(ir_expression *ir)
128 ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type,
134 lower_instructions_visitor::div_to_mul_rcp(ir_expression *ir)
140 expr = new(ir) ir_expression(ir_unop_rcp,
152 lower_instructions_visitor::int_div_to_mul_rcp(ir_expression *ir)
168 op1 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[1], NULL);
170 op1 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[1], NULL);
172 op1 = new(ir) ir_expression(ir_unop_rcp, op1->type, op1, NULL);
179 op0 = new(ir) ir_expression(ir_unop_i2f, vec_type, ir->operands[0], NULL);
181 op0 = new(ir) ir_expression(ir_unop_u2f, vec_type, ir->operands[0], NULL);
187 op0 = new(ir) ir_expression(ir_binop_mul, vec_type, op0, op1);
194 ir->operands[0] = new(ir) ir_expression(ir_unop_f2i, op0);
202 lower_instructions_visitor::exp_to_exp2(ir_expression *ir)
207 ir->operands[0] = new(ir) ir_expression(ir_binop_mul, ir->operands[0]->type,
213 lower_instructions_visitor::pow_to_exp2(ir_expression *ir)
215 ir_expression *const log2_x =
216 new(ir) ir_expression(ir_unop_log2, ir->operands[0]->type,
220 ir->operands[0] = new(ir) ir_expression(ir_binop_mul, ir->operands[1]->type,
227 lower_instructions_visitor::log_to_log2(ir_expression *ir)
230 ir->operands[0] = new(ir) ir_expression(ir_unop_log2, ir->operands[0]->type,
237 lower_instructions_visitor::mod_to_fract(ir_expression *ir)
249 ir_expression *const div_expr =
250 new(ir) ir_expression(ir_binop_div, ir->operands[0]->type,
260 ir_rvalue *expr = new(ir) ir_expression(ir_unop_fract,
272 lower_instructions_visitor::visit_leave(ir_expression *ir)