LLVM API Documentation
#include <BitstreamReader.h>
Classes | |
struct | BlockInfo |
Public Member Functions | |
BitstreamReader () | |
BitstreamReader (const unsigned char *Start, const unsigned char *End) | |
BitstreamReader (StreamableMemoryObject *bytes) | |
void | init (const unsigned char *Start, const unsigned char *End) |
StreamableMemoryObject & | getBitcodeBytes () |
~BitstreamReader () | |
void | CollectBlockInfoNames () |
bool | isIgnoringBlockInfoNames () |
bool | hasBlockInfoRecords () const |
const BlockInfo * | getBlockInfo (unsigned BlockID) const |
BlockInfo & | getOrCreateBlockInfo (unsigned BlockID) |
BitstreamReader - This class is used to read from an LLVM bitcode stream, maintaining information that is global to decoding the entire file. While a file is being read, multiple cursors can be independently advanced or skipped around within the file. These are represented by the BitstreamCursor class.
Definition at line 35 of file BitstreamReader.h.
|
inline |
Definition at line 59 of file BitstreamReader.h.
|
inline |
Definition at line 62 of file BitstreamReader.h.
References init().
|
inline |
Definition at line 67 of file BitstreamReader.h.
|
inline |
Definition at line 78 of file BitstreamReader.h.
References llvm::BitstreamReader::BlockInfo::Abbrevs.
|
inline |
CollectBlockInfoNames - This is called by clients that want block/record name information.
Definition at line 92 of file BitstreamReader.h.
|
inline |
Definition at line 76 of file BitstreamReader.h.
Referenced by llvm::BitstreamCursor::canSkipToPos(), llvm::BitstreamCursor::getWord(), llvm::BitstreamCursor::isEndPos(), llvm::BitstreamCursor::Read(), llvm::BitstreamCursor::readRecord(), and llvm::BitstreamCursor::skipRecord().
getBlockInfo - If there is block info for the specified ID, return it, otherwise return null.
Definition at line 106 of file BitstreamReader.h.
Referenced by llvm::BitstreamCursor::EnterSubBlock(), and getOrCreateBlockInfo().
Definition at line 118 of file BitstreamReader.h.
References getBlockInfo().
Referenced by llvm::BitstreamCursor::ReadBlockInfoBlock().
|
inline |
hasBlockInfoRecords - Return true if we've already read and processed the block info block for this Bitstream. We only process it for the first cursor that walks over it.
Definition at line 102 of file BitstreamReader.h.
Referenced by llvm::BitstreamCursor::ReadBlockInfoBlock().
Definition at line 71 of file BitstreamReader.h.
References llvm::getNonStreamedMemoryObject().
Referenced by BitstreamReader().
|
inline |
Definition at line 93 of file BitstreamReader.h.
Referenced by llvm::BitstreamCursor::ReadBlockInfoBlock().