LLVM 20.0.0git
Static Public Member Functions | List of all members
llvm::BCLiteral< Value > Class Template Reference

Represents a literal operand in a bitcode record. More...

#include "llvm/Bitcode/BitcodeConvenience.h"

Inheritance diagram for llvm::BCLiteral< Value >:
Inheritance graph
[legend]

Static Public Member Functions

static void emitOp (llvm::BitCodeAbbrev &abbrev)
 
template<typename T >
static void assertValid (const T &data)
 
- Static Public Member Functions inherited from llvm::detail::BCField< Compound >
template<typename T >
static void assertValid (const T &data)
 Asserts that the given data is a valid value for this field.
 
template<typename T >
static T convert (T rawValue)
 Converts a raw numeric representation of this value to its preferred type.
 

Additional Inherited Members

- Static Public Attributes inherited from llvm::detail::BCField< Compound >
static const bool IsCompound = Compound
 

Detailed Description

template<uint64_t Value>
class llvm::BCLiteral< Value >

Represents a literal operand in a bitcode record.

The value of a literal operand is the same for all instances of the record, so it is only emitted in the abbreviation definition.

Note that because this uses a compile-time template, you cannot have a literal operand that is fixed at run-time without dropping down to the raw LLVM APIs.

Definition at line 64 of file BitcodeConvenience.h.

Member Function Documentation

◆ assertValid()

template<uint64_t Value>
template<typename T >
static void llvm::BCLiteral< Value >::assertValid ( const T data)
inlinestatic

Definition at line 70 of file BitcodeConvenience.h.

References assert().

◆ emitOp()

template<uint64_t Value>
static void llvm::BCLiteral< Value >::emitOp ( llvm::BitCodeAbbrev abbrev)
inlinestatic

Definition at line 66 of file BitcodeConvenience.h.

References llvm::BitCodeAbbrev::Add().


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