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) {
523 static bool canDecodeBlob(unsigned Code, unsigned BlockID) {
524 return BlockID == bitc::METADATA_BLOCK_ID && Code == bitc::METADATA_STRINGS;
742 Error BitcodeAnalyzer::parseBlock(unsigned BlockID, unsigned IndentLevel,
748 // Get the statistics for this BlockID.
749 PerBlockIDStats &BlockStats = BlockIDStats[BlockID];
755 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) {
773 if (Error Err = Stream.EnterSubBlock(BlockID, &NumWords))
782 if ((BlockName = GetBlockName(BlockID, BlockInfo, CurStreamType)))
785 O->OS << "UnknownBlock" << BlockID;
788 O->OS << " BlockID=" << BlockID;
822 O->OS << "UnknownBlock" << BlockID << ">\n";
874 GetCodeName(Code, BlockID, BlockInfo, CurStreamType);
895 if (BlockID == bitc::METADATA_BLOCK_ID) {
915 if (BlockID == bitc::MODULE_BLOCK_ID && Code == bitc::MODULE_CODE_HASH &&
968 if (canDecodeBlob(Code, BlockID)) {