Lines Matching refs:operands

96    if (ir->operands[0]->type->is_vector())
97 ir->type = ir->operands[0]->type;
99 ir->type = ir->operands[1]->type;
108 ir_rvalue *temp = ir2->operands[op2];
109 ir2->operands[op2] = ir1->operands[op1];
110 ir1->operands[op1] = temp;
113 * base types matched, and at least one of the operands of the 2
135 if (ir1->operands[0]->type->is_matrix() ||
136 ir1->operands[1]->type->is_matrix() ||
137 ir2->operands[0]->type->is_matrix() ||
138 ir2->operands[1]->type->is_matrix())
142 ir2_const[0] = ir2->operands[0]->constant_expression_value();
143 ir2_const[1] = ir2->operands[1]->constant_expression_value();
157 ir2->operands[0]->as_expression())) {
163 ir2->operands[1]->as_expression())) {
171 /* When eliminating an expression and just returning one of its operands,
196 if (ir->operands[i]->type->is_matrix())
199 op_const[i] = ir->operands[i]->constant_expression_value();
200 op_expr[i] = ir->operands[i]->as_expression();
233 op_expr[0]->operands[0],
234 op_expr[0]->operands[1]);
243 return swizzle_if_required(ir, ir->operands[1]);
247 return swizzle_if_required(ir, ir->operands[0]);
255 ir->operands[1]->as_expression());
258 ir->operands[0]->as_expression());
265 ir->operands[1]->type,
266 ir->operands[1],
272 return swizzle_if_required(ir, ir->operands[0]);
279 return swizzle_if_required(ir, ir->operands[1]);
283 return swizzle_if_required(ir, ir->operands[0]);
296 ir->operands[1]->as_expression());
299 ir->operands[0]->as_expression());
307 ir->operands[1]->type,
308 ir->operands[1],
314 return swizzle_if_required(ir, ir->operands[0]);
330 return new(mem_ctx) ir_swizzle(ir->operands[1], component, 0, 0, 0, 1);
339 return new(mem_ctx) ir_swizzle(ir->operands[0], component, 0, 0, 0, 1);
347 return ir->operands[1];
350 return ir->operands[0];
361 return ir->operands[1];
364 return ir->operands[0];
368 ir->operands[1], NULL);
372 ir->operands[0], NULL);
380 return ir->operands[1];
383 return ir->operands[0];
398 return op_expr[0]->operands[0];
410 op_expr[0]->operands[0]->type,
411 op_expr[0]->operands[0],