Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/glsl/
Dopt_algebraic.cpp317 ir_expression *op_expr[4] = {NULL, NULL, NULL, NULL}; in handle_expression() local
340 op_expr[i] = ir->operands[i]->as_expression(); in handle_expression()
348 if (op_expr[0] && op_expr[0]->operation == ir_unop_bit_not) in handle_expression()
349 return op_expr[0]->operands[0]; in handle_expression()
353 if (op_expr[0] == NULL) in handle_expression()
356 switch (op_expr[0]->operation) { in handle_expression()
359 return abs(op_expr[0]->operands[0]); in handle_expression()
366 if (op_expr[0] == NULL) in handle_expression()
369 if (op_expr[0]->operation == ir_unop_neg) { in handle_expression()
370 return op_expr[0]->operands[0]; in handle_expression()
[all …]
Dopt_minmax.cpp385 ir_expression *op_expr = expr->operands[1 - i]->as_expression(); in prune_expression() local
386 if (op_expr && (op_expr->operation == ir_binop_min || in prune_expression()
387 op_expr->operation == ir_binop_max)) { in prune_expression()
388 return prune_expression(op_expr, baserange); in prune_expression()
416 ir_expression *op_expr = expr->operands[i]->as_expression(); in prune_expression() local
417 if (op_expr && (op_expr->operation == ir_binop_min || in prune_expression()
418 op_expr->operation == ir_binop_max)) { in prune_expression()
427 expr->operands[i] = prune_expression(op_expr, base); in prune_expression()