LLVM 19.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

Public Member Functions

 NumericVariableUse (StringRef Name, NumericVariable *Variable)
Expected< APInteval () 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
virtual Expected< APInteval () const =0
 Evaluates and.
virtual Expected< ExpressionFormatgetImplicitFormat (const SourceMgr &SM) const

Detailed Description

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

Definition at line 280 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ NumericVariableUse()

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

Definition at line 286 of file FileCheckImpl.h.

Member Function Documentation

◆ eval()

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

Implements llvm::ExpressionAST.

Definition at line 195 of file FileCheck.cpp.

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

◆ getImplicitFormat()

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

Reimplemented from llvm::ExpressionAST.

Definition at line 293 of file FileCheckImpl.h.

References llvm::NumericVariable::getImplicitFormat().

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