Lines Matching refs:op_expr

318    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()
376 if (op_expr[0] == NULL) in handle_expression()
379 if (op_expr[0]->operation == ir_unop_log) { in handle_expression()
380 return op_expr[0]->operands[0]; in handle_expression()
385 if (op_expr[0] == NULL) in handle_expression()
388 if (op_expr[0]->operation == ir_unop_exp) { in handle_expression()
389 return op_expr[0]->operands[0]; in handle_expression()
394 if (op_expr[0] == NULL) in handle_expression()
397 if (op_expr[0]->operation == ir_unop_log2) { in handle_expression()
398 return op_expr[0]->operands[0]; in handle_expression()
401 if (!options->EmitNoPow && op_expr[0]->operation == ir_binop_mul) { in handle_expression()
404 op_expr[0]->operands[log2_pos]->as_expression(); in handle_expression()
410 op_expr[0]->operands[1 - log2_pos]); in handle_expression()
417 if (op_expr[0] == NULL) in handle_expression()
420 if (op_expr[0]->operation == ir_unop_exp2) { in handle_expression()
421 return op_expr[0]->operands[0]; in handle_expression()
427 if (op_expr[0] && op_expr[0]->operation == ir_unop_trunc) { in handle_expression()
430 op_expr[0]->operands[0]); in handle_expression()
437 if (op_expr[0] == NULL) in handle_expression()
440 switch (op_expr[0]->operation) { in handle_expression()
457 op_expr[0]->operands[0], in handle_expression()
458 op_expr[0]->operands[1]); in handle_expression()
465 if (op_expr[0] && op_expr[0]->operation == ir_binop_add) { in handle_expression()
466 ir_expression *b2f_0 = op_expr[0]->operands[0]->as_expression(); in handle_expression()
467 ir_expression *b2f_1 = op_expr[0]->operands[1]->as_expression(); in handle_expression()
512 if (op_expr[i]) { in handle_expression()
513 if (op_expr[i]->operation == ir_unop_neg) { in handle_expression()
515 if (other && op_expr[i]->operands[0]->equals(other)) { in handle_expression()
526 reassociate_constant(ir, 0, op_const[0], op_expr[1]); in handle_expression()
528 reassociate_constant(ir, 1, op_const[1], op_expr[0]); in handle_expression()
532 ir_expression *expr = try_replace_with_dot(op_expr[0], op_expr[1], in handle_expression()
547 ir_expression *mul = op_expr[mul_pos]; in handle_expression()
614 if (op_expr[0] && op_expr[0]->operation == ir_unop_b2f && in handle_expression()
615 op_expr[1] && op_expr[1]->operation == ir_unop_b2f) { in handle_expression()
616 return b2f(logic_and(op_expr[0]->operands[0], op_expr[1]->operands[0])); in handle_expression()
623 reassociate_constant(ir, 0, op_const[0], op_expr[1]); in handle_expression()
625 reassociate_constant(ir, 1, op_const[1], op_expr[0]); in handle_expression()
716 ir_expression *add = op_expr[add_pos]; in handle_expression()
773 } else if (op_expr[0] && op_expr[0]->operation == ir_unop_logic_not && in handle_expression()
774 op_expr[1] && op_expr[1]->operation == ir_unop_logic_not) { in handle_expression()
778 return logic_not(logic_or(op_expr[0]->operands[0], in handle_expression()
779 op_expr[1]->operands[0])); in handle_expression()
813 } else if (op_expr[0] && op_expr[0]->operation == ir_unop_logic_not && in handle_expression()
814 op_expr[1] && op_expr[1]->operation == ir_unop_logic_not) { in handle_expression()
818 return logic_not(logic_and(op_expr[0]->operands[0], in handle_expression()
819 op_expr[1]->operands[0])); in handle_expression()
872 ir_expression *inner_expr = op_expr[op]; in handle_expression()
937 if (op_expr[0] && op_expr[0]->operation == ir_unop_rcp) in handle_expression()
938 return op_expr[0]->operands[0]; in handle_expression()
940 if (op_expr[0] && (op_expr[0]->operation == ir_unop_exp2 || in handle_expression()
941 op_expr[0]->operation == ir_unop_exp)) { in handle_expression()
942 return new(mem_ctx) ir_expression(op_expr[0]->operation, ir->type, in handle_expression()
943 neg(op_expr[0]->operands[0])); in handle_expression()
949 if (op_expr[0] && op_expr[0]->operation == ir_unop_rsq) in handle_expression()
950 return sqrt(op_expr[0]->operands[0]); in handle_expression()
953 if (op_expr[0] && op_expr[0]->operation == ir_unop_sqrt) { in handle_expression()
954 return rsq(op_expr[0]->operands[0]); in handle_expression()