LLVM
15.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 . More... | |
Error | parse () |
Parse the META_BLOCK and fill the available entries. More... | |
Public Attributes | |
BitstreamCursor & | Stream |
The Bitstream reader. More... | |
BitstreamBlockInfo & | BlockInfo |
Reference to the storage for the block info. More... | |
Optional< uint64_t > | ContainerVersion |
The parsed content: depending on the container type, some fields might be empty. More... | |
Optional< uint8_t > | ContainerType |
Optional< StringRef > | StrTabBuf |
Optional< StringRef > | ExternalFilePath |
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 37 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 201 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.
Optional<uint8_t> llvm::remarks::BitstreamMetaParserHelper::ContainerType |
Definition at line 37 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
The parsed content: depending on the container type, some fields might be empty.
Definition at line 36 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
Definition at line 39 of file BitstreamRemarkParser.h.
Referenced by parseRecord().
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().
Definition at line 38 of file BitstreamRemarkParser.h.
Referenced by parseRecord().