LLVM 20.0.0git
|
Helper class for dealing with a scalar element in the middle of a record. More...
#include "llvm/Bitcode/BitcodeConvenience.h"
Static Public Member Functions | |
template<typename BufferTy , typename ElementDataTy , typename... DataTy> | |
static void | emit (llvm::BitstreamWriter &Stream, BufferTy &buffer, unsigned code, ElementDataTy element, DataTy &&...data) |
template<typename T , typename ElementDataTy , typename... DataTy> | |
static void | read (ArrayRef< T > buffer, ElementDataTy &element, DataTy &&...data) |
template<typename T , typename... DataTy> | |
static void | read (ArrayRef< T > buffer, std::nullopt_t, DataTy &&...data) |
Helper class for dealing with a scalar element in the middle of a record.
Definition at line 186 of file BitcodeConvenience.h.
|
inlinestatic |
Definition at line 189 of file BitcodeConvenience.h.
References llvm::detail::BCRecordCoding< ElementTy, Fields >::emit().
Referenced by llvm::detail::BCRecordCoding< ElementTy, Fields >::emit(), llvm::detail::BCRecordCoding< BCArray< ElementTy > >::emit(), and llvm::BCGenericRecordLayout< IDField, Fields >::emitRecord().
|
inlinestatic |
Definition at line 200 of file BitcodeConvenience.h.
References assert(), llvm::ArrayRef< T >::empty(), llvm::ArrayRef< T >::front(), llvm::detail::BCRecordCoding< ElementTy, Fields >::read(), and llvm::ArrayRef< T >::slice().
Referenced by llvm::detail::BCRecordCoding< ElementTy, Fields >::read(), and llvm::BCGenericRecordLayout< IDField, Fields >::readRecord().
|
inlinestatic |
Definition at line 209 of file BitcodeConvenience.h.
References assert(), llvm::ArrayRef< T >::empty(), llvm::detail::BCRecordCoding< ElementTy, Fields >::read(), and llvm::ArrayRef< T >::slice().