Lines Matching refs:operation
192 if (expr0 && expr0->operation == ir_binop_add &&
194 expr1 && expr1->operation == ir_binop_add &&
257 if (!ir2 || ir1->operation != ir2->operation)
320 if (ir->operation == ir_binop_mul &&
325 if (matrix_mul && matrix_mul->operation == ir_binop_mul &&
347 switch (ir->operation) {
349 if (op_expr[0] && op_expr[0]->operation == ir_unop_bit_not)
357 switch (op_expr[0]->operation) {
370 if (op_expr[0]->operation == ir_unop_neg) {
379 if (op_expr[0]->operation == ir_unop_log) {
388 if (op_expr[0]->operation == ir_unop_exp) {
397 if (op_expr[0]->operation == ir_unop_log2) {
401 if (op_expr[0]->operation == ir_binop_mul) {
406 if (log2_expr && log2_expr->operation == ir_unop_log2) {
420 if (op_expr[0]->operation == ir_unop_exp2) {
427 if (op_expr[0] && op_expr[0]->operation == ir_unop_trunc) {
428 return new(mem_ctx) ir_expression(ir->operation,
440 switch (op_expr[0]->operation) {
465 if (op_expr[0] && op_expr[0]->operation == ir_binop_add) {
469 if (b2f_0 && b2f_0->operation == ir_unop_b2f &&
470 b2f_1 && b2f_1->operation == ir_unop_b2f) {
484 if (op->operation == (inverse_operation)) \
513 if (op_expr[i]->operation == ir_unop_neg) {
549 if (!mul || mul->operation != ir_binop_mul)
553 * inner addition operation.
559 if (!inner_add || inner_add->operation != ir_binop_add)
570 if (!neg || neg->operation != ir_unop_neg)
614 if (op_expr[0] && op_expr[0]->operation == ir_unop_b2f &&
615 op_expr[1] && op_expr[1]->operation == ir_unop_b2f) {
639 if (!sign_expr || sign_expr->operation != ir_unop_sign ||
640 !floor_expr || floor_expr->operation != ir_unop_floor)
644 if (!add_expr || add_expr->operation != ir_binop_add)
649 if (!abs_expr || abs_expr->operation != ir_unop_abs)
716 if (!add || add->operation != ir_binop_add)
733 return new(mem_ctx) ir_expression(ir->operation,
737 return new(mem_ctx) ir_expression(ir->operation,
748 return new(mem_ctx) ir_expression(ir->operation == ir_binop_all_equal
771 } else if (op_expr[0] && op_expr[0]->operation == ir_unop_logic_not &&
772 op_expr[1] && op_expr[1]->operation == ir_unop_logic_not) {
811 } else if (op_expr[0] && op_expr[0]->operation == ir_unop_logic_not &&
812 op_expr[1] && op_expr[1]->operation == ir_unop_logic_not) {
867 * a saturate operation
872 ir_expression_operation op_cond = (ir->operation == ir_binop_max) ?
875 if (!inner_expr || !outer_const || (inner_expr->operation != op_cond))
884 * meet our conditions that we can do just a single saturate operation
895 if (ir->operation == ir_binop_min &&
901 if (ir->operation == ir_binop_max &&
907 if (ir->operation == ir_binop_min &&
913 if (ir->operation == ir_binop_max &&
919 if (ir->operation == ir_binop_max &&
925 if (ir->operation == ir_binop_min &&
935 if (op_expr[0] && op_expr[0]->operation == ir_unop_rcp)
938 if (op_expr[0] && (op_expr[0]->operation == ir_unop_exp2 ||
939 op_expr[0]->operation == ir_unop_exp)) {
940 return new(mem_ctx) ir_expression(op_expr[0]->operation, ir->type,
944 if (op_expr[0] && op_expr[0]->operation == ir_unop_rsq)
948 if (op_expr[0] && op_expr[0]->operation == ir_unop_sqrt) {
1031 if (!expr || expr->operation == ir_quadop_vector)