Lines Matching defs:BlockID
26 GetBlockName(unsigned BlockID, const BitstreamBlockInfo &BlockInfo,
29 if (BlockID < bitc::FIRST_APPLICATION_BLOCKID) {
30 if (BlockID == bitc::BLOCKINFO_BLOCK_ID)
37 BlockInfo.getBlockInfo(BlockID)) {
45 switch (BlockID) {
89 GetCodeName(unsigned CodeID, unsigned BlockID,
93 if (BlockID < bitc::FIRST_APPLICATION_BLOCKID) {
94 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) {
111 BlockInfo.getBlockInfo(BlockID)) {
123 switch (BlockID) {
521 static bool canDecodeBlob(unsigned Code, unsigned BlockID) {
522 return BlockID == bitc::METADATA_BLOCK_ID && Code == bitc::METADATA_STRINGS;
740 Error BitcodeAnalyzer::parseBlock(unsigned BlockID, unsigned IndentLevel,
746 // Get the statistics for this BlockID.
747 PerBlockIDStats &BlockStats = BlockIDStats[BlockID];
753 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) {
771 if (Error Err = Stream.EnterSubBlock(BlockID, &NumWords))
780 if ((BlockName = GetBlockName(BlockID, BlockInfo, CurStreamType)))
783 O->OS << "UnknownBlock" << BlockID;
786 O->OS << " BlockID=" << BlockID;
820 O->OS << "UnknownBlock" << BlockID << ">\n";
872 GetCodeName(Code, BlockID, BlockInfo, CurStreamType);
893 if (BlockID == bitc::METADATA_BLOCK_ID) {
913 if (BlockID == bitc::MODULE_BLOCK_ID && Code == bitc::MODULE_CODE_HASH &&
966 if (canDecodeBlob(Code, BlockID)) {