LLVM 22.0.0git
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:
[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< ExpressionFormatgetImplicitFormat (const SourceMgr &SM) const

Detailed Description

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

Definition at line 158 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ ExpressionLiteral()

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

Definition at line 164 of file FileCheckImpl.h.

References llvm::ExpressionAST::ExpressionAST().

Member Function Documentation

◆ eval()

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

Implements llvm::ExpressionAST.

Definition at line 168 of file FileCheckImpl.h.


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