LLVM 20.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 126 of file FileCheckImpl.h.
|
inline |
Definition at line 131 of file FileCheckImpl.h.
|
virtualdefault |
Evaluates and.
Implemented in llvm::ExpressionLiteral, llvm::NumericVariableUse, and llvm::BinaryOperation.
Referenced by llvm::FileCheckPatternContext::defineCmdlineVariables().
|
inline |
Definition at line 135 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::NumericVariableUse, and llvm::BinaryOperation.
Definition at line 146 of file FileCheckImpl.h.