|
LLVM
10.0.0
|
Helper to parse any bitstream remark container. More...
#include "llvm/Remarks/BitstreamRemarkParser.h"
Public Member Functions | |
| BitstreamParserHelper (StringRef Buffer) | |
Start parsing at Buffer. More... | |
| Expected< std::array< char, 4 > > | parseMagic () |
| Parse the magic number. More... | |
| Error | parseBlockInfoBlock () |
| Parse the block info block containing all the abbrevs. More... | |
| Expected< bool > | isMetaBlock () |
| Return true if the next block is a META_BLOCK. More... | |
| Expected< bool > | isRemarkBlock () |
| Return true if the next block is a REMARK_BLOCK. More... | |
| bool | atEndOfStream () |
| Return true if the parser reached the end of the stream. More... | |
| void | skipToEnd () |
| Jump to the end of the stream, skipping everything. More... | |
Public Attributes | |
| BitstreamCursor | Stream |
| The Bitstream reader. More... | |
| BitstreamBlockInfo | BlockInfo |
| The block info block. More... | |
Helper to parse any bitstream remark container.
Definition at line 89 of file BitstreamRemarkParser.h.
| BitstreamParserHelper::BitstreamParserHelper | ( | StringRef | Buffer | ) |
Start parsing at Buffer.
Definition at line 209 of file BitstreamRemarkParser.cpp.
Referenced by processRemarkVersion().
|
inline |
Return true if the parser reached the end of the stream.
Definition at line 108 of file BitstreamRemarkParser.h.
References llvm::SimpleBitstreamCursor::AtEndOfStream().
Return true if the next block is a META_BLOCK.
This function does not move the cursor.
Definition at line 273 of file BitstreamRemarkParser.cpp.
References isBlock(), llvm::remarks::META_BLOCK_ID, and Stream.
Referenced by advanceToMetaBlock().
Return true if the next block is a REMARK_BLOCK.
This function does not move the cursor.
Definition at line 277 of file BitstreamRemarkParser.cpp.
References isBlock(), llvm::remarks::META_BLOCK_ID, and Stream.
| Error BitstreamParserHelper::parseBlockInfoBlock | ( | ) |
Parse the block info block containing all the abbrevs.
This needs to be called before calling any other parsing function.
Definition at line 222 of file BitstreamRemarkParser.cpp.
References llvm::BitstreamCursor::advance(), BlockInfo, llvm::bitc::BLOCKINFO_BLOCK_ID, llvm::createStringError(), llvm::make_error_code(), llvm::BitstreamCursor::ReadBlockInfoBlock(), llvm::BitstreamCursor::setBlockInfo(), Stream, llvm::BitstreamEntry::SubBlock, llvm::Error::success(), and llvm::Expected< T >::takeError().
Referenced by advanceToMetaBlock().
Parse the magic number.
Definition at line 212 of file BitstreamRemarkParser.cpp.
References llvm::SimpleBitstreamCursor::Read(), and Stream.
Referenced by advanceToMetaBlock(), and llvm::remarks::createBitstreamParserFromMeta().
|
inline |
Jump to the end of the stream, skipping everything.
Definition at line 110 of file BitstreamRemarkParser.h.
References llvm::SimpleBitstreamCursor::skipToEnd().
| BitstreamBlockInfo llvm::remarks::BitstreamParserHelper::BlockInfo |
The block info block.
Definition at line 93 of file BitstreamRemarkParser.h.
Referenced by parseBlockInfoBlock().
| BitstreamCursor llvm::remarks::BitstreamParserHelper::Stream |
The Bitstream reader.
Definition at line 91 of file BitstreamRemarkParser.h.
Referenced by isMetaBlock(), isRemarkBlock(), parseBlockInfoBlock(), and parseMagic().
1.8.13