Lines Matching refs:EvalResult
44 EvalResult LHSResult; in evaluate()
54 EvalResult RHSResult; in evaluate()
96 class EvalResult { class in llvm::RuntimeDyldCheckerExprEval
98 EvalResult() : Value(0), ErrorMsg("") {} in EvalResult() function in llvm::RuntimeDyldCheckerExprEval::EvalResult
99 EvalResult(uint64_t Value) : Value(Value), ErrorMsg("") {} in EvalResult() function in llvm::RuntimeDyldCheckerExprEval::EvalResult
100 EvalResult(std::string ErrorMsg) : Value(0), ErrorMsg(ErrorMsg) {} in EvalResult() function in llvm::RuntimeDyldCheckerExprEval::EvalResult
128 EvalResult unexpectedToken(StringRef TokenStart, StringRef SubExpr, in unexpectedToken()
141 return EvalResult(std::move(ErrorMsg)); in unexpectedToken()
144 bool handleError(StringRef Expr, const EvalResult &R) const { in handleError()
183 EvalResult computeBinOpResult(BinOpToken Op, const EvalResult &LHSResult, in computeBinOpResult()
184 const EvalResult &RHSResult) const { in computeBinOpResult()
189 return EvalResult(LHSResult.getValue() + RHSResult.getValue()); in computeBinOpResult()
191 return EvalResult(LHSResult.getValue() - RHSResult.getValue()); in computeBinOpResult()
193 return EvalResult(LHSResult.getValue() & RHSResult.getValue()); in computeBinOpResult()
195 return EvalResult(LHSResult.getValue() | RHSResult.getValue()); in computeBinOpResult()
197 return EvalResult(LHSResult.getValue() << RHSResult.getValue()); in computeBinOpResult()
199 return EvalResult(LHSResult.getValue() >> RHSResult.getValue()); in computeBinOpResult()
220 std::pair<EvalResult, StringRef> evalDecodeOperand(StringRef Expr) const { in evalDecodeOperand()
229 EvalResult(("Cannot decode unknown symbol '" + Symbol + "'").str()), in evalDecodeOperand()
237 EvalResult OpIdxExpr; in evalDecodeOperand()
251 EvalResult(("Couldn't decode instruction at '" + Symbol + "'").str()), in evalDecodeOperand()
264 return std::make_pair(EvalResult(ErrMsgStream.str()), ""); in evalDecodeOperand()
275 return std::make_pair(EvalResult(ErrMsgStream.str()), ""); in evalDecodeOperand()
278 return std::make_pair(EvalResult(Op.getImm()), RemainingExpr); in evalDecodeOperand()
287 std::pair<EvalResult, StringRef> evalNextPC(StringRef Expr, in evalNextPC()
297 EvalResult(("Cannot decode unknown symbol '" + Symbol + "'").str()), in evalNextPC()
309 EvalResult(("Couldn't decode instruction at '" + Symbol + "'").str()), in evalNextPC()
317 return std::make_pair(EvalResult(NextPC), RemainingExpr); in evalNextPC()
325 std::pair<EvalResult, StringRef> evalStubAddr(StringRef Expr, in evalStubAddr()
365 return std::make_pair(EvalResult(ErrorMsg), ""); in evalStubAddr()
367 return std::make_pair(EvalResult(StubAddr), RemainingExpr); in evalStubAddr()
370 std::pair<EvalResult, StringRef> evalSectionAddr(StringRef Expr, in evalSectionAddr()
402 return std::make_pair(EvalResult(ErrorMsg), ""); in evalSectionAddr()
404 return std::make_pair(EvalResult(StubAddr), RemainingExpr); in evalSectionAddr()
410 std::pair<EvalResult, StringRef> evalIdentifierExpr(StringRef Expr, in evalIdentifierExpr()
434 return std::make_pair(EvalResult(ErrMsg), ""); in evalIdentifierExpr()
444 return std::make_pair(EvalResult(Value), RemainingExpr); in evalIdentifierExpr()
467 std::pair<EvalResult, StringRef> evalNumberExpr(StringRef Expr) const { in evalNumberExpr()
477 return std::make_pair(EvalResult(Value), RemainingExpr); in evalNumberExpr()
483 std::pair<EvalResult, StringRef> evalParensExpr(StringRef Expr, in evalParensExpr()
486 EvalResult SubExprResult; in evalParensExpr()
503 std::pair<EvalResult, StringRef> evalLoadExpr(StringRef Expr) const { in evalLoadExpr()
509 return std::make_pair(EvalResult("Expected '{' following '*'."), ""); in evalLoadExpr()
511 EvalResult ReadSizeExpr; in evalLoadExpr()
517 return std::make_pair(EvalResult("Invalid size for dereference."), ""); in evalLoadExpr()
519 return std::make_pair(EvalResult("Missing '}' for dereference."), ""); in evalLoadExpr()
524 EvalResult LoadAddrExprResult; in evalLoadExpr()
534 EvalResult(Checker.readMemoryAtAddr(LoadAddr, ReadSize)), in evalLoadExpr()
545 std::pair<EvalResult, StringRef> evalSimpleExpr(StringRef Expr, in evalSimpleExpr()
547 EvalResult SubExprResult; in evalSimpleExpr()
551 return std::make_pair(EvalResult("Unexpected end of expression"), ""); in evalSimpleExpr()
584 std::pair<EvalResult, StringRef>
585 evalSliceExpr(std::pair<EvalResult, StringRef> Ctx) const { in evalSliceExpr() argument
586 EvalResult SubExprResult; in evalSliceExpr()
593 EvalResult HighBitExpr; in evalSliceExpr()
604 EvalResult LowBitExpr; in evalSliceExpr()
619 return std::make_pair(EvalResult(SlicedValue), RemainingExpr); in evalSliceExpr()
628 std::pair<EvalResult, StringRef>
629 evalComplexExpr(std::pair<EvalResult, StringRef> LHSAndRemaining, in evalComplexExpr() argument
631 EvalResult LHSResult; in evalComplexExpr()
649 EvalResult RHSResult; in evalComplexExpr()
658 EvalResult ThisResult(computeBinOpResult(BinOp, LHSResult, RHSResult)); in evalComplexExpr()