LLVM  13.0.0git
Public Member Functions | List of all members
llvm::NumericVariableUse Class Reference

Class representing the use of a numeric variable in the AST of an expression. More...

#include "FileCheck/FileCheckImpl.h"

Inheritance diagram for llvm::NumericVariableUse:
Inheritance graph
[legend]
Collaboration diagram for llvm::NumericVariableUse:
Collaboration graph
[legend]

Public Member Functions

 NumericVariableUse (StringRef Name, NumericVariable *Variable)
 
Expected< ExpressionValueeval () const override
 
Expected< ExpressionFormatgetImplicitFormat (const SourceMgr &SM) const override
 
- Public Member Functions inherited from llvm::ExpressionAST
 ExpressionAST (StringRef ExpressionStr)
 
virtual ~ExpressionAST ()=default
 
StringRef getExpressionStr () const
 

Detailed Description

Class representing the use of a numeric variable in the AST of an expression.

Definition at line 328 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ NumericVariableUse()

llvm::NumericVariableUse::NumericVariableUse ( StringRef  Name,
NumericVariable Variable 
)
inline

Definition at line 334 of file FileCheckImpl.h.

Member Function Documentation

◆ eval()

Expected< ExpressionValue > NumericVariableUse::eval ( ) const
overridevirtual
Returns
the value of the variable referenced by this instance.

Implements llvm::ExpressionAST.

Definition at line 365 of file FileCheck.cpp.

References llvm::ExpressionAST::getExpressionStr(), and llvm::NumericVariable::getValue().

◆ getImplicitFormat()

Expected<ExpressionFormat> llvm::NumericVariableUse::getImplicitFormat ( const SourceMgr SM) const
inlineoverridevirtual
Returns
implicit format of this numeric variable.

Reimplemented from llvm::ExpressionAST.

Definition at line 341 of file FileCheckImpl.h.

References llvm::NumericVariable::getImplicitFormat().


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