LLVM 20.0.0git
|
A record with a fixed record code. More...
#include "llvm/Bitcode/BitcodeConvenience.h"
Public Types | |
enum | : unsigned { Code = RecordCode } |
Public Member Functions | |
BCRecordLayout (llvm::BitstreamWriter &Stream) | |
Create a layout and register it with the given bitstream writer. | |
template<typename BufferTy , typename... Data> | |
void | emit (BufferTy &buffer, Data &&...data) const |
Emit a record to the bitstream writer, using the given buffer for scratch space. | |
Public Member Functions inherited from llvm::BCGenericRecordLayout< BCLiteral< RecordCode >, Fields... > | |
BCGenericRecordLayout (llvm::BitstreamWriter &Stream) | |
Create a layout and register it with the given bitstream writer. | |
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 | |
template<typename BufferTy , typename... Data> | |
static void | emitRecord (llvm::BitstreamWriter &Stream, BufferTy &buffer, unsigned abbrCode, Data &&...data) |
Emit a record identified by abbrCode to bitstream reader Stream , using buffer for scratch space. | |
Static Public Member Functions inherited from llvm::BCGenericRecordLayout< BCLiteral< RecordCode >, Fields... > | |
static unsigned | emitAbbrev (llvm::BitstreamWriter &Stream) |
Registers this record's layout with the bitstream reader. | |
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. | |
static void | readRecord (ArrayRef< ElementTy > buffer, Data &&...data) |
Extract record data from buffer into the given data fields. | |
static void | readRecord (BufferTy &buffer, Data &&...data) |
Extract record data from buffer into the given data fields. | |
Additional Inherited Members | |
Public Attributes inherited from llvm::BCGenericRecordLayout< BCLiteral< RecordCode >, Fields... > | |
const unsigned | AbbrevCode |
The abbreviation code used for this record in the current block. | |
A record with a fixed record code.
Definition at line 438 of file BitcodeConvenience.h.
Enumerator | |
---|---|
Code | The record code associated with this layout. |
Definition at line 443 of file BitcodeConvenience.h.
|
inlineexplicit |
Create a layout and register it with the given bitstream writer.
Definition at line 449 of file BitcodeConvenience.h.
|
inline |
Emit a record to the bitstream writer, using the given buffer for scratch space.
Note that even fixed arguments must be specified here.
Definition at line 456 of file BitcodeConvenience.h.
References llvm::BCGenericRecordLayout< BCLiteral< RecordCode >, Fields... >::emit().
|
inlinestatic |
Emit a record identified by abbrCode
to bitstream reader Stream
, using buffer
for scratch space.
Note that even fixed arguments must be specified here. Currently, arrays and blobs can only be passed as StringRefs.
Definition at line 466 of file BitcodeConvenience.h.
References llvm::BCGenericRecordLayout< BCLiteral< RecordCode >, Fields... >::emitRecord().