Home | History | Annotate | Download | only in llvm-bcanalyzer

Lines Matching refs:Stream

75 /// CurStreamType - If we can sniff the flavor of this stream, we can produce
324 static bool ParseBlock(BitstreamCursor &Stream, unsigned IndentLevel) {
326 uint64_t BlockBitStart = Stream.GetCurrentBitNo();
327 unsigned BlockID = Stream.ReadSubBlockID();
334 // BLOCKINFO is a special part of the stream.
337 if (Stream.ReadBlockInfoBlock())
339 uint64_t BlockBitEnd = Stream.GetCurrentBitNo();
345 if (Stream.EnterSubBlock(BlockID, &NumWords))
351 if ((BlockName = GetBlockName(BlockID, *Stream.getBitStreamReader())))
360 << " BlockCodeSize=" << Stream.GetAbbrevIDWidth() << ">\n";
367 if (Stream.AtEndOfStream())
370 uint64_t RecordStartBit = Stream.GetCurrentBitNo();
373 unsigned AbbrevID = Stream.ReadCode();
376 if (Stream.ReadBlockEnd())
378 uint64_t BlockBitEnd = Stream.GetCurrentBitNo();
390 uint64_t SubBlockBitStart = Stream.GetCurrentBitNo();
391 if (ParseBlock(Stream, IndentLevel+1))
394 uint64_t SubBlockBitEnd = Stream.GetCurrentBitNo();
401 Stream.ReadAbbrevRecord();
413 unsigned Code = Stream.ReadRecord(AbbrevID, Record, BlobStart, BlobLen);
422 Stream.GetCurrentBitNo()-RecordStartBit;
429 GetCodeName(Code, BlockID, *Stream.getBitStreamReader()))
434 Stream.getBitStreamReader()))
486 return Error("Bitcode stream should be a multiple of 4 bytes in length");
498 BitstreamCursor Stream(StreamFile);
501 // Read the stream signature.
503 Signature[0] = Stream.Read(8);
504 Signature[1] = Stream.Read(8);
505 Signature[2] = Stream.Read(4);
506 Signature[3] = Stream.Read(4);
507 Signature[4] = Stream.Read(4);
508 Signature[5] = Stream.Read(4);
520 while (!Stream.AtEndOfStream()) {
521 unsigned Code = Stream.ReadCode();
525 if (ParseBlock(Stream, 0))
538 errs() << " Stream type: ";