LLVM: llvm::ExpressionAST Class Reference (original) (raw)
Base class representing the AST of a given expression. More...
#include "[FileCheck/FileCheckImpl.h](FileCheckImpl%5F8h%5Fsource.html)"
Inheritance diagram for llvm::ExpressionAST:
| 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 |
Detailed Description
Base class representing the AST of a given expression.
Definition at line 132 of file FileCheckImpl.h.
Constructor & Destructor Documentation
| llvm::ExpressionAST::ExpressionAST ( StringRef ExpressionStr) | inline |
|---|
◆ ~ExpressionAST()
| virtual llvm::ExpressionAST::~ExpressionAST ( ) | virtualdefault |
|---|
Member Function Documentation
◆ eval()
| virtual Expected< APInt > llvm::ExpressionAST::eval ( ) const | pure virtual |
|---|
◆ getExpressionStr()
| StringRef llvm::ExpressionAST::getExpressionStr ( ) const | inline |
|---|
◆ getImplicitFormat()
Returns
either the implicit format of this AST, a diagnostic against 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.
The documentation for this class was generated from the following file:
- lib/FileCheck/FileCheckImpl.h