Lines Matching refs:BlockID
85 static const char *GetBlockName(unsigned BlockID, in GetBlockName() argument
89 if (BlockID < bitc::FIRST_APPLICATION_BLOCKID) { in GetBlockName()
90 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) in GetBlockName()
97 StreamFile.getBlockInfo(BlockID)) { in GetBlockName()
105 switch (BlockID) { in GetBlockName()
128 static const char *GetCodeName(unsigned CodeID, unsigned BlockID, in GetCodeName() argument
132 if (BlockID < bitc::FIRST_APPLICATION_BLOCKID) { in GetCodeName()
133 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) { in GetCodeName()
146 StreamFile.getBlockInfo(BlockID)) { in GetCodeName()
158 switch (BlockID) { in GetCodeName()
398 static bool ParseBlock(BitstreamCursor &Stream, unsigned BlockID, in ParseBlock() argument
404 PerBlockIDStats &BlockStats = BlockIDStats[BlockID]; in ParseBlock()
409 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) { in ParseBlock()
419 if (Stream.EnterSubBlock(BlockID, &NumWords)) in ParseBlock()
425 if ((BlockName = GetBlockName(BlockID, *Stream.getBitStreamReader(), in ParseBlock()
429 outs() << "UnknownBlock" << BlockID; in ParseBlock()
432 outs() << " BlockID=" << BlockID; in ParseBlock()
461 outs() << "UnknownBlock" << BlockID << ">\n"; in ParseBlock()
509 GetCodeName(Code, BlockID, *Stream.getBitStreamReader(), in ParseBlock()
515 GetCodeName(Code, BlockID, *Stream.getBitStreamReader(), in ParseBlock()
656 unsigned BlockID = BlockInfoCursor.ReadSubBlockID(); in AnalyzeBitcode() local
657 if (BlockID == bitc::BLOCKINFO_BLOCK_ID) { in AnalyzeBitcode()
677 unsigned BlockID = Stream.ReadSubBlockID(); in AnalyzeBitcode() local
679 if (ParseBlock(Stream, BlockID, 0, CurStreamType)) in AnalyzeBitcode()