Home
last modified time | relevance | path

Searched refs:op_expr (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/compiler/glsl/
Dopt_algebraic.cpp318 ir_expression *op_expr[4] = {NULL, NULL, NULL, NULL}; in handle_expression() local
341 op_expr[i] = ir->operands[i]->as_expression(); in handle_expression()
349 if (op_expr[0] && op_expr[0]->operation == ir_unop_bit_not) in handle_expression()
350 return op_expr[0]->operands[0]; in handle_expression()
354 if (op_expr[0] == NULL) in handle_expression()
357 switch (op_expr[0]->operation) { in handle_expression()
360 return abs(op_expr[0]->operands[0]); in handle_expression()
367 if (op_expr[0] == NULL) in handle_expression()
370 if (op_expr[0]->operation == ir_unop_neg) { in handle_expression()
371 return op_expr[0]->operands[0]; in handle_expression()
[all …]
Dopt_minmax.cpp430 ir_expression *op_expr = expr->operands[1 - i]->as_expression(); in prune_expression() local
431 if (op_expr && (op_expr->operation == ir_binop_min || in prune_expression()
432 op_expr->operation == ir_binop_max)) { in prune_expression()
433 return prune_expression(op_expr, baserange); in prune_expression()
461 ir_expression *op_expr = expr->operands[i]->as_expression(); in prune_expression() local
462 if (op_expr && (op_expr->operation == ir_binop_min || in prune_expression()
463 op_expr->operation == ir_binop_max)) { in prune_expression()
472 expr->operands[i] = prune_expression(op_expr, base); in prune_expression()