Lines Matching refs:ir
32 #include "ir.h"
61 ir_vec_index_to_swizzle_visitor::convert_vec_index_to_swizzle(ir_rvalue *ir)
63 ir_dereference_array *deref = ir->as_dereference_array();
67 return ir;
70 return ir;
75 return ir;
77 void *ctx = hieralloc_parent(ir);
84 ir_vec_index_to_swizzle_visitor::visit_enter(ir_expression *ir)
88 for (i = 0; i < ir->get_num_operands(); i++) {
89 ir->operands[i] = convert_vec_index_to_swizzle(ir->operands[i]);
96 ir_vec_index_to_swizzle_visitor::visit_enter(ir_swizzle *ir)
102 ir->val = convert_vec_index_to_swizzle(ir->val);
108 ir_vec_index_to_swizzle_visitor::visit_enter(ir_assignment *ir)
110 ir->set_lhs(convert_vec_index_to_swizzle(ir->lhs));
111 ir->rhs = convert_vec_index_to_swizzle(ir->rhs);
117 ir_vec_index_to_swizzle_visitor::visit_enter(ir_call *ir)
119 foreach_iter(exec_list_iterator, iter, *ir) {
132 ir_vec_index_to_swizzle_visitor::visit_enter(ir_return *ir)
134 if (ir->value) {
135 ir->value = convert_vec_index_to_swizzle(ir->value);
142 ir_vec_index_to_swizzle_visitor::visit_enter(ir_if *ir)
144 ir->condition = convert_vec_index_to_swizzle(ir->condition);