Searched refs:rightVal (Results 1 – 3 of 3) sorted by relevance
32 bool rightVal = right.as<Literal>().boolValue(); in eliminate_no_op_boolean() local35 if ((op.kind() == Token::Kind::TK_LOGICALAND && rightVal) || // (expr && true) -> (expr) in eliminate_no_op_boolean()36 (op.kind() == Token::Kind::TK_LOGICALOR && !rightVal) || // (expr || false) -> (expr) in eliminate_no_op_boolean()37 (op.kind() == Token::Kind::TK_LOGICALXOR && !rightVal) || // (expr ^^ false) -> (expr) in eliminate_no_op_boolean()38 (op.kind() == Token::Kind::TK_EQEQ && rightVal) || // (expr == true) -> (expr) in eliminate_no_op_boolean()39 (op.kind() == Token::Kind::TK_NEQ && !rightVal)) { // (expr != false) -> (expr) in eliminate_no_op_boolean()359 bool rightVal = right->as<Literal>().boolValue(); in Simplify() local362 case Token::Kind::TK_LOGICALAND: result = leftVal && rightVal; break; in Simplify()363 case Token::Kind::TK_LOGICALOR: result = leftVal || rightVal; break; in Simplify()364 case Token::Kind::TK_LOGICALXOR: result = leftVal ^ rightVal; break; in Simplify()[all …]
1516 bool rightVal = ((BoolLiteral&) right).fValue; in constantFold() local1519 case Token::LOGICALAND: result = leftVal && rightVal; break; in constantFold()1520 case Token::LOGICALOR: result = leftVal || rightVal; break; in constantFold()1521 case Token::LOGICALXOR: result = leftVal ^ rightVal; break; in constantFold()1527 leftVal op rightVal)) in constantFold()1530 int64_t rightVal = ((IntLiteral&) right).fValue; in constantFold() local1536 if (rightVal) { in constantFold()1542 if (rightVal) { in constantFold()1557 if (rightVal >= 0 && rightVal <= 31) { in constantFold()1563 if (rightVal >= 0 && rightVal <= 31) { in constantFold()[all …]
357 ExecConstValueAccess rightVal = m_rightValueExpr->getValue(); in evaluate() local360 evaluate(dst, leftVal, rightVal); in evaluate()