LLVM 20.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]

Public Member Functions

 ExpressionLiteral (StringRef ExpressionStr, APInt Val)
 
Expected< APInteval () 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 an unsigned literal in the AST of an expression.

Definition at line 152 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ ExpressionLiteral()

llvm::ExpressionLiteral::ExpressionLiteral ( StringRef  ExpressionStr,
APInt  Val 
)
inlineexplicit

Definition at line 158 of file FileCheckImpl.h.

Member Function Documentation

◆ eval()

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

Implements llvm::ExpressionAST.

Definition at line 162 of file FileCheckImpl.h.


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