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

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

#include "Support/FileCheckImpl.h"

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

Public Member Functions

 ExpressionLiteral (uint64_t Val)
 Constructs a literal with the specified value. More...
 
Expected< uint64_t > eval () const override
 
- Public Member Functions inherited from llvm::ExpressionAST
virtual ~ExpressionAST ()=default
 

Detailed Description

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

Definition at line 44 of file FileCheckImpl.h.

Constructor & Destructor Documentation

◆ ExpressionLiteral()

llvm::ExpressionLiteral::ExpressionLiteral ( uint64_t  Val)
inline

Constructs a literal with the specified value.

Definition at line 51 of file FileCheckImpl.h.

Member Function Documentation

◆ eval()

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

Implements llvm::ExpressionAST.

Definition at line 54 of file FileCheckImpl.h.


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