[PATCH] Refactor bitcode reader to simplify control.

Karl Schimpf kschimpf at google.com
Wed Apr 1 14:32:44 PDT 2015


Hi dschuff, jvoung, rafael,

Modifies the bitcode reader such that the same logic is used for
both memory buffers and data streams. The incremental parsing
was factored into StartParse, ContinueParse, and FinishParse.
All parses (incremental or non-incremental) begin with StartParse.
Then zero (or more) calls to ContinueParse incrementally read more
input, picking up from where the last call left off. FinishParse
materializes any additional parts, based on the flags passed to StartParse.

http://reviews.llvm.org/D8786

Files:
  include/llvm/Support/StreamingMemoryObject.h
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Reader/BitstreamReader.cpp
  lib/Support/StreamingMemoryObject.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8786.23088.patch
Type: text/x-patch
Size: 23717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150401/020cf9cc/attachment.bin>


More information about the llvm-commits mailing list