]> granicus.if.org Git - llvm/commit
[Bitcode] Move Bitstream to a separate library
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 3 Jul 2019 22:40:07 +0000 (22:40 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 3 Jul 2019 22:40:07 +0000 (22:40 +0000)
commit742690b61b65feb08fd4235a58b1bd1eab98d0ed
treef2b7b324744341afa29e859d3fbcaf25c94ab4d4
parent24e7b73648d8fc68bba20405b85f28048e763032
[Bitcode] Move Bitstream to a separate library

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.

Differential Revision: https://reviews.llvm.org/D63899

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365091 91177308-0d34-0410-b5e6-96231b3b80d8
27 files changed:
include/llvm/Bitcode/BitcodeReader.h
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/Bitstream/BitCodes.h [moved from include/llvm/Bitcode/BitCodes.h with 96% similarity]
include/llvm/Bitstream/BitstreamReader.h [moved from include/llvm/Bitcode/BitstreamReader.h with 99% similarity]
include/llvm/Bitstream/BitstreamWriter.h [moved from include/llvm/Bitcode/BitstreamWriter.h with 99% similarity]
include/llvm/Support/JSON.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Reader/CMakeLists.txt
lib/Bitcode/Reader/LLVMBuild.txt
lib/Bitcode/Reader/MetadataLoader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitstream/CMakeLists.txt [new file with mode: 0644]
lib/Bitstream/LLVMBuild.txt [new file with mode: 0644]
lib/Bitstream/Reader/BitstreamReader.cpp [moved from lib/Bitcode/Reader/BitstreamReader.cpp with 99% similarity]
lib/Bitstream/Reader/CMakeLists.txt [new file with mode: 0644]
lib/Bitstream/Reader/LLVMBuild.txt [new file with mode: 0644]
lib/CMakeLists.txt
lib/LLVMBuild.txt
tools/llvm-bcanalyzer/CMakeLists.txt
tools/llvm-bcanalyzer/LLVMBuild.txt
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
unittests/Bitcode/CMakeLists.txt
unittests/Bitstream/BitstreamReaderTest.cpp [moved from unittests/Bitcode/BitstreamReaderTest.cpp with 98% similarity]
unittests/Bitstream/BitstreamWriterTest.cpp [moved from unittests/Bitcode/BitstreamWriterTest.cpp with 97% similarity]
unittests/Bitstream/CMakeLists.txt [new file with mode: 0644]
unittests/CMakeLists.txt
utils/GenLibDeps.pl