LLVM 20.0.0git
|
Helper class for dealing with a scalar element at the end of a record. More...
#include "llvm/Bitcode/BitcodeConvenience.h"
Static Public Member Functions | |
template<typename BufferTy , typename DataTy > | |
static void | emit (llvm::BitstreamWriter &Stream, BufferTy &buffer, unsigned code, const DataTy &data) |
template<typename T , typename DataTy > | |
static void | read (ArrayRef< T > buffer, DataTy &data) |
template<typename T > | |
static void | read (ArrayRef< T > buffer, std::nullopt_t) |
template<typename T > | |
static void | read (ArrayRef< T > buffer)=delete |
Helper class for dealing with a scalar element at the end of a record.
This has a separate implementation because up until now we've only been building the record (into a data buffer), and now we need to hand it off to the BitstreamWriter to be emitted.
Definition at line 223 of file BitcodeConvenience.h.
|
inlinestatic |
Definition at line 226 of file BitcodeConvenience.h.
References llvm::BitstreamWriter::EmitRecordWithAbbrev().
|
staticdelete |
|
inlinestatic |
Definition at line 236 of file BitcodeConvenience.h.
References assert(), llvm::ArrayRef< T >::front(), and llvm::ArrayRef< T >::size().
|
inlinestatic |
Definition at line 241 of file BitcodeConvenience.h.
References assert(), and llvm::ArrayRef< T >::size().