LLVM 20.0.0git
|
Helper to parse a META_BLOCK for a bitstream remark container. More...
#include "llvm/Remarks/BitstreamRemarkParser.h"
Public Member Functions | |
BitstreamMetaParserHelper (BitstreamCursor &Stream, BitstreamBlockInfo &BlockInfo) | |
Continue parsing with Stream . | |
Error | parse () |
Parse the META_BLOCK and fill the available entries. | |
Public Attributes | |
BitstreamCursor & | Stream |
The Bitstream reader. | |
BitstreamBlockInfo & | BlockInfo |
Reference to the storage for the block info. | |
std::optional< uint64_t > | ContainerVersion |
The parsed content: depending on the container type, some fields might be empty. | |
std::optional< uint8_t > | ContainerType |
std::optional< StringRef > | StrTabBuf |
std::optional< StringRef > | ExternalFilePath |
std::optional< uint64_t > | RemarkVersion |
Helper to parse a META_BLOCK for a bitstream remark container.
Definition at line 29 of file BitstreamRemarkParser.h.
BitstreamMetaParserHelper::BitstreamMetaParserHelper | ( | BitstreamCursor & | Stream, |
BitstreamBlockInfo & | BlockInfo | ||
) |
Continue parsing with Stream
.
Stream
is expected to contain a ENTER_SUBBLOCK to the META_BLOCK at the current position. Stream
is expected to have a BLOCKINFO_BLOCK set.
Definition at line 38 of file BitstreamRemarkParser.cpp.
Error BitstreamMetaParserHelper::parse | ( | ) |
Parse the META_BLOCK and fill the available entries.
This helper does not check for the validity of the fields.
Definition at line 202 of file BitstreamRemarkParser.cpp.
References llvm::remarks::META_BLOCK_ID, and parseBlock().
Referenced by llvm::remarks::BitstreamRemarkParser::parseMeta().
BitstreamBlockInfo& llvm::remarks::BitstreamMetaParserHelper::BlockInfo |
Reference to the storage for the block info.
Definition at line 33 of file BitstreamRemarkParser.h.
std::optional<uint8_t> llvm::remarks::BitstreamMetaParserHelper::ContainerType |
Definition at line 37 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
std::optional<uint64_t> llvm::remarks::BitstreamMetaParserHelper::ContainerVersion |
The parsed content: depending on the container type, some fields might be empty.
Definition at line 36 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
std::optional<StringRef> llvm::remarks::BitstreamMetaParserHelper::ExternalFilePath |
Definition at line 39 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
std::optional<uint64_t> llvm::remarks::BitstreamMetaParserHelper::RemarkVersion |
Definition at line 40 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
BitstreamCursor& llvm::remarks::BitstreamMetaParserHelper::Stream |
The Bitstream reader.
Definition at line 31 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
std::optional<StringRef> llvm::remarks::BitstreamMetaParserHelper::StrTabBuf |
Definition at line 38 of file BitstreamRemarkParser.h.
Referenced by parseRecord().