Home | History | Annotate | Download | only in llvm-bcanalyzer

Lines Matching defs:BlockID

86 static const char *GetBlockName(unsigned BlockID,
90 if (BlockID < bitc::FIRST_APPLICATION_BLOCKID) {
91 if (BlockID == bitc::BLOCKINFO_BLOCK_ID)
98 StreamFile.getBlockInfo(BlockID)) {
106 switch (BlockID) {
130 static const char *GetCodeName(unsigned CodeID, unsigned BlockID,
134 if (BlockID < bitc::FIRST_APPLICATION_BLOCKID) {
135 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) {
148 StreamFile.getBlockInfo(BlockID)) {
160 switch (BlockID) {
462 static bool decodeBlob(unsigned Code, unsigned BlockID, BitstreamReader &Reader,
465 if (BlockID != bitc::METADATA_BLOCK_ID)
474 static bool ParseBlock(BitstreamCursor &Stream, unsigned BlockID,
479 // Get the statistics for this BlockID.
480 PerBlockIDStats &BlockStats = BlockIDStats[BlockID];
486 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) {
495 if (Stream.EnterSubBlock(BlockID, &NumWords))
504 if ((BlockName = GetBlockName(BlockID, *Stream.getBitStreamReader(),
508 outs() << "UnknownBlock" << BlockID;
511 outs() << " BlockID=" << BlockID;
540 outs() << "UnknownBlock" << BlockID << ">\n";
589 GetCodeName(Code, BlockID, *Stream.getBitStreamReader(),
595 GetCodeName(Code, BlockID, *Stream.getBitStreamReader(),
608 if (BlockID == bitc::MODULE_BLOCK_ID && Code == bitc::MODULE_CODE_HASH) {
661 if (Blob.data() && decodeBlob(Code, BlockID, *Stream.getBitStreamReader(),
787 unsigned BlockID = BlockInfoCursor.ReadSubBlockID();
788 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) {
808 unsigned BlockID = Stream.ReadSubBlockID();
810 if (ParseBlock(Stream, BlockID, 0, CurStreamType))