Searched refs:rightVal (Results 1 – 4 of 4) sorted by relevance
33 bool rightVal = right.as<BoolLiteral>().value(); in eliminate_no_op_boolean() local36 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() local357 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()[all …]
34 static std::string formatReason(StringRef reason, int leftVal, int rightVal) { in formatReason() argument35 return (Twine(reason) + " (" + Twine(leftVal) + ", " + Twine(rightVal) + ")") in formatReason()
1340 bool rightVal = ((BoolLiteral&) right).fValue; in constantFold() local1343 case Token::LOGICALAND: result = leftVal && rightVal; break; in constantFold()1344 case Token::LOGICALOR: result = leftVal || rightVal; break; in constantFold()1345 case Token::LOGICALXOR: result = leftVal ^ rightVal; break; in constantFold()1351 leftVal op rightVal)) in constantFold()1354 int64_t rightVal = ((IntLiteral&) right).fValue; in constantFold() local1360 if (rightVal) { in constantFold()1366 if (rightVal) { in constantFold()1388 double rightVal = ((FloatLiteral&) right).fValue; in constantFold() local1394 if (rightVal) { in constantFold()
357 ExecConstValueAccess rightVal = m_rightValueExpr->getValue(); in evaluate() local360 evaluate(dst, leftVal, rightVal); in evaluate()