LLVM: llvm::BCGenericRecordLayout< IDField, Fields > Class Template Reference (original) (raw)

Represents a single bitcode record type. More...

#include "[llvm/Bitcode/BitcodeConvenience.h](BitcodeConvenience%5F8h%5Fsource.html)"

Public Member Functions
BCGenericRecordLayout (llvm::BitstreamWriter &Stream)
Create a layout and register it with the given bitstream writer.
template<typename BufferTy , typename... Data>
void emit (BufferTy &buffer, unsigned id, Data &&...data) const
Emit a record to the bitstream writer, using the given buffer for scratch space.
Static Public Member Functions
static unsigned emitAbbrev (llvm::BitstreamWriter &Stream)
Registers this record's layout with the bitstream reader.
template<typename BufferTy , typename... Data>
static void emitRecord (llvm::BitstreamWriter &Stream, BufferTy &buffer, unsigned abbrCode, unsigned recordID, Data &&...data)
Emit a record identified by abbrCode to bitstream reader Stream, using buffer for scratch space.
template<typename ElementTy , typename... Data>
static void readRecord (ArrayRef< ElementTy > buffer, Data &&...data)
Extract record data from buffer into the given data fields.
template<typename BufferTy , typename... Data>
static void readRecord (BufferTy &buffer, Data &&...data)
Extract record data from buffer into the given data fields.

template<typename IDField, typename... Fields>
class llvm::BCGenericRecordLayout< IDField, Fields >

Represents a single bitcode record type.

This class template is meant to be instantiated and then given a name, so that from then on that name can be used.

Definition at line 357 of file BitcodeConvenience.h.

template<typename IDField , typename... Fields>

Create a layout and register it with the given bitstream writer.

Definition at line 368 of file BitcodeConvenience.h.

emit()

template<typename IDField , typename... Fields>

template<typename BufferTy , typename... Data>

emitAbbrev()

template<typename IDField , typename... Fields>

emitRecord()

template<typename IDField , typename... Fields>

template<typename BufferTy , typename... Data>

readRecord() [1/2]

template<typename IDField , typename... Fields>

template<typename ElementTy , typename... Data>

readRecord() [2/2]

template<typename IDField , typename... Fields>

template<typename BufferTy , typename... Data>

AbbrevCode

template<typename IDField , typename... Fields>


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