Lines Matching refs:Stream
324 static bool ParseBlock(BitstreamCursor &Stream, unsigned IndentLevel) { in ParseBlock() argument
326 uint64_t BlockBitStart = Stream.GetCurrentBitNo(); in ParseBlock()
327 unsigned BlockID = Stream.ReadSubBlockID(); in ParseBlock()
337 if (Stream.ReadBlockInfoBlock()) in ParseBlock()
339 uint64_t BlockBitEnd = Stream.GetCurrentBitNo(); in ParseBlock()
345 if (Stream.EnterSubBlock(BlockID, &NumWords)) in ParseBlock()
351 if ((BlockName = GetBlockName(BlockID, *Stream.getBitStreamReader()))) in ParseBlock()
360 << " BlockCodeSize=" << Stream.GetAbbrevIDWidth() << ">\n"; in ParseBlock()
367 if (Stream.AtEndOfStream()) in ParseBlock()
370 uint64_t RecordStartBit = Stream.GetCurrentBitNo(); in ParseBlock()
373 unsigned AbbrevID = Stream.ReadCode(); in ParseBlock()
376 if (Stream.ReadBlockEnd()) in ParseBlock()
378 uint64_t BlockBitEnd = Stream.GetCurrentBitNo(); in ParseBlock()
390 uint64_t SubBlockBitStart = Stream.GetCurrentBitNo(); in ParseBlock()
391 if (ParseBlock(Stream, IndentLevel+1)) in ParseBlock()
394 uint64_t SubBlockBitEnd = Stream.GetCurrentBitNo(); in ParseBlock()
401 Stream.ReadAbbrevRecord(); in ParseBlock()
413 unsigned Code = Stream.ReadRecord(AbbrevID, Record, BlobStart, BlobLen); in ParseBlock()
422 Stream.GetCurrentBitNo()-RecordStartBit; in ParseBlock()
429 GetCodeName(Code, BlockID, *Stream.getBitStreamReader())) in ParseBlock()
434 GetCodeName(Code, BlockID, *Stream.getBitStreamReader())) in ParseBlock()
498 BitstreamCursor Stream(StreamFile); in AnalyzeBitcode() local
503 Signature[0] = Stream.Read(8); in AnalyzeBitcode()
504 Signature[1] = Stream.Read(8); in AnalyzeBitcode()
505 Signature[2] = Stream.Read(4); in AnalyzeBitcode()
506 Signature[3] = Stream.Read(4); in AnalyzeBitcode()
507 Signature[4] = Stream.Read(4); in AnalyzeBitcode()
508 Signature[5] = Stream.Read(4); in AnalyzeBitcode()
520 while (!Stream.AtEndOfStream()) { in AnalyzeBitcode()
521 unsigned Code = Stream.ReadCode(); in AnalyzeBitcode()
525 if (ParseBlock(Stream, 0)) in AnalyzeBitcode()