LLVM 22.0.0git
|
Base class representing the AST of a given expression. More...
#include "FileCheck/FileCheckImpl.h"
Public Member Functions | |
ExpressionAST (StringRef ExpressionStr) | |
virtual | ~ExpressionAST ()=default |
StringRef | getExpressionStr () const |
virtual Expected< APInt > | eval () const =0 |
Evaluates and. | |
virtual Expected< ExpressionFormat > | getImplicitFormat (const SourceMgr &SM) const |
Base class representing the AST of a given expression.
Definition at line 132 of file FileCheckImpl.h.
|
inline |
Definition at line 137 of file FileCheckImpl.h.
Referenced by llvm::BinaryOperation::BinaryOperation(), llvm::ExpressionLiteral::ExpressionLiteral(), and llvm::NumericVariableUse::NumericVariableUse().
|
virtualdefault |
Evaluates and.
Implemented in llvm::BinaryOperation, llvm::ExpressionLiteral, and llvm::NumericVariableUse.
Referenced by llvm::FileCheckPatternContext::defineCmdlineVariables().
|
inline |
Definition at line 141 of file FileCheckImpl.h.
Referenced by llvm::NumericVariableUse::eval(), and llvm::BinaryOperation::getImplicitFormat().
|
inlinevirtual |
SM
if implicit formats of the AST's components conflict, or NoFormat if the AST has no implicit format (e.g. AST is made up of a single literal). Reimplemented in llvm::BinaryOperation, and llvm::NumericVariableUse.
Definition at line 152 of file FileCheckImpl.h.