Lines Matching refs:leftVal
52 bool leftVal = left.as<BoolLiteral>().value(); in short_circuit_boolean() local
55 if ((op.kind() == Token::Kind::TK_LOGICALAND && !leftVal) || // (false && expr) -> (false) in short_circuit_boolean()
56 (op.kind() == Token::Kind::TK_LOGICALOR && leftVal)) { // (true || expr) -> (true) in short_circuit_boolean()
353 bool leftVal = left->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()
422 #define URESULT(t, op) t ## Literal::Make(offset, (SKSL_UINT)(leftVal) op \ in Simplify()
425 SKSL_INT leftVal = left->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()
474 SKSL_FLOAT leftVal = left->as<FloatLiteral>().value(); in Simplify() local