Lines Matching refs:LHSResult
46 EvalResult LHSResult; in evaluate() local
47 std::tie(LHSResult, RemainingExpr) = in evaluate()
49 if (LHSResult.hasError()) in evaluate()
50 return handleError(Expr, LHSResult); in evaluate()
64 if (LHSResult.getValue() != RHSResult.getValue()) { in evaluate()
66 << format("0x%" PRIx64, LHSResult.getValue()) in evaluate()
186 EvalResult computeBinOpResult(BinOpToken Op, const EvalResult &LHSResult, in computeBinOpResult() argument
192 return EvalResult(LHSResult.getValue() + RHSResult.getValue()); in computeBinOpResult()
194 return EvalResult(LHSResult.getValue() - RHSResult.getValue()); in computeBinOpResult()
196 return EvalResult(LHSResult.getValue() & RHSResult.getValue()); in computeBinOpResult()
198 return EvalResult(LHSResult.getValue() | RHSResult.getValue()); in computeBinOpResult()
200 return EvalResult(LHSResult.getValue() << RHSResult.getValue()); in computeBinOpResult()
202 return EvalResult(LHSResult.getValue() >> RHSResult.getValue()); in computeBinOpResult()
633 EvalResult LHSResult; in evalComplexExpr() local
635 std::tie(LHSResult, RemainingExpr) = LHSAndRemaining; in evalComplexExpr()
639 if (LHSResult.hasError() || RemainingExpr == "") in evalComplexExpr()
640 return std::make_pair(LHSResult, RemainingExpr); in evalComplexExpr()
648 return std::make_pair(LHSResult, RemainingExpr); in evalComplexExpr()
660 EvalResult ThisResult(computeBinOpResult(BinOp, LHSResult, RHSResult)); in evalComplexExpr()