Lines Matching refs:ir
35 #include "ir.h"
48 foreach_in_list(ir_instruction, ir, instructions) {
49 ir_variable *var = ir->as_variable();
59 ir_visitor_status visit_enter(ir_expression *ir);
70 matrix_flipper::visit_enter(ir_expression *ir)
72 if (ir->operation != ir_binop_mul ||
73 !ir->operands[0]->type->is_matrix() ||
74 !ir->operands[1]->type->is_vector())
77 ir_variable *mat_var = ir->operands[0]->variable_referenced();
84 ir_dereference_variable *deref = ir->operands[0]->as_dereference_variable();
88 void *mem_ctx = ralloc_parent(ir);
90 ir->operands[0] = ir->operands[1];
91 ir->operands[1] = new(mem_ctx) ir_dereference_variable(mvp_transpose);
96 ir_dereference_array *array_ref = ir->operands[0]->as_dereference_array();
101 ir->operands[0] = ir->operands[1];
102 ir->operands[1] = array_ref;