Page MenuHomePhabricator

[Bitcode] Move Bitstream to a separate library
ClosedPublic

Authored by thegameg on Jun 27 2019, 2:35 PM.

Details

Summary

This moves Bitcode/Bitstream*, Bitcode/BitCodes.h to Bitstream/.

This is needed to avoid a circular dependency when using the bitstream code for parsing optimization remarks.

Since Bitcode uses Core for the IR part:

libLLVMRemarks -> Bitcode -> Core

and Core uses libLLVMRemarks to generate remarks (see IR/RemarkStreamer.cpp):

Core -> libLLVMRemarks

we need to separate the Bitstream and Bitcode part.

For clang-doc, it seems that it doesn't need the whole bitcode layer, so I updated the CMake to only use the bitstream part.

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg created this revision.Jun 27 2019, 2:35 PM
This revision is now accepted and ready to land.Jul 3 2019, 10:51 AM
This revision was automatically updated to reflect the committed changes.