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