Lines Matching refs:rightVal
33 bool rightVal = right.as<BoolLiteral>().value(); in eliminate_no_op_boolean() local
36 if ((op.kind() == Token::Kind::TK_LOGICALAND && rightVal) || // (expr && true) -> (expr) in eliminate_no_op_boolean()
37 (op.kind() == Token::Kind::TK_LOGICALOR && !rightVal) || // (expr || false) -> (expr) in eliminate_no_op_boolean()
38 (op.kind() == Token::Kind::TK_LOGICALXOR && !rightVal) || // (expr ^^ false) -> (expr) in eliminate_no_op_boolean()
39 (op.kind() == Token::Kind::TK_EQEQ && rightVal) || // (expr == true) -> (expr) in eliminate_no_op_boolean()
40 (op.kind() == Token::Kind::TK_NEQ && !rightVal)) { // (expr != false) -> (expr) in eliminate_no_op_boolean()
354 bool rightVal = right->as<BoolLiteral>().value(); in Simplify() local
357 case Token::Kind::TK_LOGICALAND: result = leftVal && rightVal; break; in Simplify()
358 case Token::Kind::TK_LOGICALOR: result = leftVal || rightVal; break; in Simplify()
359 case Token::Kind::TK_LOGICALXOR: result = leftVal ^ rightVal; break; in Simplify()
360 case Token::Kind::TK_EQEQ: result = leftVal == rightVal; break; in Simplify()
361 case Token::Kind::TK_NEQ: result = leftVal != rightVal; break; in Simplify()
421 #define RESULT(t, op) t ## Literal::Make(offset, leftVal op rightVal, &resultType) in Simplify()
423 (SKSL_UINT)(rightVal), &resultType) in Simplify()
426 SKSL_INT rightVal = right->as<IntLiteral>().value(); in Simplify() local
432 if (leftVal == std::numeric_limits<SKSL_INT>::min() && rightVal == -1) { in Simplify()
438 if (leftVal == std::numeric_limits<SKSL_INT>::min() && rightVal == -1) { in Simplify()
453 if (rightVal >= 0 && rightVal <= 31) { in Simplify()
461 if (rightVal >= 0 && rightVal <= 31) { in Simplify()
475 SKSL_FLOAT rightVal = right->as<FloatLiteral>().value(); in Simplify() local