This is an archive of the discontinued LLVM Phabricator instance.

Refactor bitcode reader to simplify control logic.
AbandonedPublic

Authored by kschimpf on Jun 17 2015, 1:21 PM.

Details

Summary

Modifies the bitcode reader to use the same logic for both memory
buffers and data streams (other than initialization). The incremental
parser is now factored into startParse, continueParse, and
finishParse. All parses begin with startParse. It then makes zero or
more calls to continueParse (via incremental parsing). Finally, when
materializing, finishParse to finish parsing.

Note that this CL replaces http://reviews.llvm.org/D8786.

Diff Detail

Event Timeline

kschimpf updated this revision to Diff 27866.Jun 17 2015, 1:21 PM
kschimpf retitled this revision from to Refactor bitcode reader to simplify control logic..
kschimpf added reviewers: dschuff, jvoung, rafael, filcab.
kschimpf updated this object.
kschimpf added a subscriber: Unknown Object (MLST).
kschimpf abandoned this revision.Aug 6 2015, 12:01 PM

Since the important parts of this revision (i.e. bug fixes) have been added as separate patches, and there doesn't appear to be consensus on the remaining portions, I closing this patch.