#include "llvm/Remarks/BitstreamRemarkSerializer.h"
#include "llvm/Remarks/Remark.h"
#include <optional>
usingnamespacellvm;
usingnamespacellvm::remarks;
BitstreamRemarkSerializerHelper::BitstreamRemarkSerializerHelper(
BitstreamRemarkContainerType ContainerType)
: … { … }
static void push(SmallVectorImpl<uint64_t> &R, StringRef Str) { … }
static void setRecordName(unsigned RecordID, BitstreamWriter &Bitstream,
SmallVectorImpl<uint64_t> &R, StringRef Str) { … }
static void initBlock(unsigned BlockID, BitstreamWriter &Bitstream,
SmallVectorImpl<uint64_t> &R, StringRef Str) { … }
void BitstreamRemarkSerializerHelper::setupMetaBlockInfo() { … }
void BitstreamRemarkSerializerHelper::setupMetaRemarkVersion() { … }
void BitstreamRemarkSerializerHelper::emitMetaRemarkVersion(
uint64_t RemarkVersion) { … }
void BitstreamRemarkSerializerHelper::setupMetaStrTab() { … }
void BitstreamRemarkSerializerHelper::emitMetaStrTab(
const StringTable &StrTab) { … }
void BitstreamRemarkSerializerHelper::setupMetaExternalFile() { … }
void BitstreamRemarkSerializerHelper::emitMetaExternalFile(StringRef Filename) { … }
void BitstreamRemarkSerializerHelper::setupRemarkBlockInfo() { … }
void BitstreamRemarkSerializerHelper::setupBlockInfo() { … }
void BitstreamRemarkSerializerHelper::emitMetaBlock(
uint64_t ContainerVersion, std::optional<uint64_t> RemarkVersion,
std::optional<const StringTable *> StrTab,
std::optional<StringRef> Filename) { … }
void BitstreamRemarkSerializerHelper::emitRemarkBlock(const Remark &Remark,
StringTable &StrTab) { … }
void BitstreamRemarkSerializerHelper::flushToStream(raw_ostream &OS) { … }
StringRef BitstreamRemarkSerializerHelper::getBuffer() { … }
BitstreamRemarkSerializer::BitstreamRemarkSerializer(raw_ostream &OS,
SerializerMode Mode)
: … { … }
BitstreamRemarkSerializer::BitstreamRemarkSerializer(raw_ostream &OS,
SerializerMode Mode,
StringTable StrTabIn)
: … { … }
void BitstreamRemarkSerializer::emit(const Remark &Remark) { … }
std::unique_ptr<MetaSerializer> BitstreamRemarkSerializer::metaSerializer(
raw_ostream &OS, std::optional<StringRef> ExternalFilename) { … }
void BitstreamMetaSerializer::emit() { … }