LLVM  14.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
Collaboration diagram for llvm::BCLiteral< Value >:
Collaboration graph

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<>
static void assertValid (const T &data)
 Asserts that the given data is a valid value for this field. More...
static T convert (T rawValue)
 Converts a raw numeric representation of this value to its preferred type. More...

Additional Inherited Members

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

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 63 of file BitcodeConvenience.h.

Member Function Documentation

◆ assertValid()

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

Definition at line 69 of file BitcodeConvenience.h.

References assert().

◆ emitOp()

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

Definition at line 65 of file BitcodeConvenience.h.

References llvm::BitCodeAbbrev::Add().

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