[llvm-commits] Proposal/patch: Enable bitcode streaming

Derek Schuff dschuff at google.com
Thu Jan 12 15:09:45 PST 2012


>
>
> Overall, my recommendation would be to split this into three patches: the
> first patch would just increase the abstraction level of the bitcode
> reader, by adding various predicates that you need and tidy things up.  The
> second would extend MemoryObject as needed to add the functionality that
> you need.  The third would actually switch the meat of the bitcode reader
> to be lazy-streaming, and switch a tool to use it.
>
>

Attached is patch 1 as listed above: a refactor of BistreamCursor to use an
offset rather than raw pointers, and abstract the relevant operations into
functions. For now BitstreamReader is the same. I've tested it locally and
it works in isolation and is hopefully ready to apply. Patch 2, a subclass
of MemoryObject (StreamableMemoryObject) to replace the BitstreamBytes
class here, is upcoming next.

thanks,
-Derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120112/de9f5e04/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitstreamCursor_refactor.diff
Type: text/x-patch
Size: 5329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120112/de9f5e04/attachment.bin>


More information about the llvm-commits mailing list