LLVM  10.0.0
Public Member Functions | List of all members
llvm::ExpressionAST Class Referenceabstract

Base class representing the AST of a given expression. More...

#include "Support/FileCheckImpl.h"

Inheritance diagram for llvm::ExpressionAST:
[legend]

Public Member Functions

virtual ~ExpressionAST ()=default
 
virtual Expected< uint64_t > eval () const =0
 Evaluates and. More...
 

Detailed Description

Base class representing the AST of a given expression.

Definition at line 34 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ ~ExpressionAST()

virtual llvm::ExpressionAST::~ExpressionAST ( )
virtualdefault

Member Function Documentation

◆ eval()

virtual Expected<uint64_t> llvm::ExpressionAST::eval ( ) const
pure virtual

Evaluates and.

Returns
the value of the expression represented by this AST or an error if evaluation fails.

Implemented in llvm::BinaryOperation, llvm::NumericVariableUse, and llvm::ExpressionLiteral.

Referenced by llvm::BinaryOperation::BinaryOperation(), and llvm::NumericVariableUse::NumericVariableUse().


The documentation for this class was generated from the following file: