Lines Matching refs:operands
96 if (ir->operands[0]->type->is_vector()) in update_type()
97 ir->type = ir->operands[0]->type; in update_type()
99 ir->type = ir->operands[1]->type; in update_type()
108 ir_rvalue *temp = ir2->operands[op2]; in reassociate_operands()
109 ir2->operands[op2] = ir1->operands[op1]; in reassociate_operands()
110 ir1->operands[op1] = temp; in reassociate_operands()
135 if (ir1->operands[0]->type->is_matrix() || in reassociate_constant()
136 ir1->operands[1]->type->is_matrix() || in reassociate_constant()
137 ir2->operands[0]->type->is_matrix() || in reassociate_constant()
138 ir2->operands[1]->type->is_matrix()) in reassociate_constant()
142 ir2_const[0] = ir2->operands[0]->constant_expression_value(); in reassociate_constant()
143 ir2_const[1] = ir2->operands[1]->constant_expression_value(); in reassociate_constant()
157 ir2->operands[0]->as_expression())) { in reassociate_constant()
163 ir2->operands[1]->as_expression())) { in reassociate_constant()
196 if (ir->operands[i]->type->is_matrix()) in handle_expression()
199 op_const[i] = ir->operands[i]->constant_expression_value(); in handle_expression()
200 op_expr[i] = ir->operands[i]->as_expression(); in handle_expression()
233 op_expr[0]->operands[0], in handle_expression()
234 op_expr[0]->operands[1]); in handle_expression()
243 return swizzle_if_required(ir, ir->operands[1]); in handle_expression()
247 return swizzle_if_required(ir, ir->operands[0]); in handle_expression()
255 ir->operands[1]->as_expression()); in handle_expression()
258 ir->operands[0]->as_expression()); in handle_expression()
265 ir->operands[1]->type, in handle_expression()
266 ir->operands[1], in handle_expression()
272 return swizzle_if_required(ir, ir->operands[0]); in handle_expression()
279 return swizzle_if_required(ir, ir->operands[1]); in handle_expression()
283 return swizzle_if_required(ir, ir->operands[0]); in handle_expression()
296 ir->operands[1]->as_expression()); in handle_expression()
299 ir->operands[0]->as_expression()); in handle_expression()
307 ir->operands[1]->type, in handle_expression()
308 ir->operands[1], in handle_expression()
314 return swizzle_if_required(ir, ir->operands[0]); in handle_expression()
330 return new(mem_ctx) ir_swizzle(ir->operands[1], component, 0, 0, 0, 1); in handle_expression()
339 return new(mem_ctx) ir_swizzle(ir->operands[0], component, 0, 0, 0, 1); in handle_expression()
347 return ir->operands[1]; in handle_expression()
350 return ir->operands[0]; in handle_expression()
361 return ir->operands[1]; in handle_expression()
364 return ir->operands[0]; in handle_expression()
368 ir->operands[1], NULL); in handle_expression()
372 ir->operands[0], NULL); in handle_expression()
380 return ir->operands[1]; in handle_expression()
383 return ir->operands[0]; in handle_expression()
398 return op_expr[0]->operands[0]; in handle_expression()
410 op_expr[0]->operands[0]->type, in handle_expression()
411 op_expr[0]->operands[0], in handle_expression()