Home | History | Annotate | Download | only in glsl

Lines Matching refs:ir

34 #include "ir.h"
58 ir_mod_to_fract_visitor::visit_leave(ir_expression *ir)
60 if (ir->operation != ir_binop_mod)
63 ir_variable *temp = new(ir) ir_variable(ir->operands[1]->type, "mod_b",
70 assign = new(ir) ir_assignment(new(ir) ir_dereference_variable(temp),
71 ir->operands[1], NULL);
74 expr = new(ir) ir_expression(ir_binop_div,
75 ir->operands[0]->type,
76 ir->operands[0],
77 new(ir) ir_dereference_variable(temp));
79 expr = new(ir) ir_expression(ir_unop_fract,
80 ir->operands[0]->type,
84 ir->operation = ir_binop_mul;
85 ir->operands[0] = new(ir) ir_dereference_variable(temp);
86 ir->operands[1] = expr;