This is an archive of the discontinued LLVM Phabricator instance.

Bitcode: Decouple block info block state from reader.
ClosedPublic

Authored by pcc on Nov 2 2016, 1:24 PM.

Details

Summary

As proposed on llvm-dev:
http://lists.llvm.org/pipermail/llvm-dev/2016-October/106630.html

Move block info block state to a new class, BitstreamBlockInfo.
Clients may set the block info for a particular cursor with the
BitstreamCursor::setBlockInfo() method.

At this point BitstreamReader is not much more than a container for an
ArrayRef<uint8_t>, so remove it and replace all uses with direct uses
of memory buffers.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 76773.Nov 2 2016, 1:24 PM
pcc retitled this revision from to Bitcode: Decouple block info block state from reader..
pcc updated this object.
pcc added reviewers: dexonsmith, mehdi_amini.
pcc added a subscriber: llvm-commits.
pcc updated this revision to Diff 76781.Nov 2 2016, 2:01 PM
  • Use implicit conversion to MemoryBufferRef
pcc added a comment.Nov 7 2016, 7:09 PM

Post-devmeeting ping.

This revision was automatically updated to reflect the committed changes.