LLVM  14.0.0git
Public Member Functions | List of all members
llvm::ExpressionLiteral Class Reference

Class representing an unsigned literal in the AST of an expression. More...

#include "FileCheck/FileCheckImpl.h"

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

Public Member Functions

template<class T >
 ExpressionLiteral (StringRef ExpressionStr, T Val)
 
Expected< ExpressionValueeval () const override
 
- Public Member Functions inherited from llvm::ExpressionAST
 ExpressionAST (StringRef ExpressionStr)
 
virtual ~ExpressionAST ()=default
 
StringRef getExpressionStr () const
 
virtual Expected< ExpressionFormatgetImplicitFormat (const SourceMgr &SM) const
 

Detailed Description

Class representing an unsigned literal in the AST of an expression.

Definition at line 199 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ ExpressionLiteral()

template<class T >
llvm::ExpressionLiteral::ExpressionLiteral ( StringRef  ExpressionStr,
T  Val 
)
inlineexplicit

Definition at line 206 of file FileCheckImpl.h.

Member Function Documentation

◆ eval()

Expected<ExpressionValue> llvm::ExpressionLiteral::eval ( ) const
inlineoverridevirtual
Returns
the literal's value.

Implements llvm::ExpressionAST.

Definition at line 210 of file FileCheckImpl.h.


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