Add a module Hash in the bitcode and the combined index, implementing a kind of ...
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 1 Apr 2016 05:33:11 +0000 (05:33 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 1 Apr 2016 05:33:11 +0000 (05:33 +0000)
commitd7ad221c161dbf048c1d4f4f3ce3c24bbb203a13
tree75fa347cdbbe74459f4acec5ab77a20aff7db12c
parenteed269329caa92d0bf11c72a2eec0e7143bea18b
Add a module Hash in the bitcode and the combined index, implementing a kind of "build-id"

This is intended to be used for ThinLTO incremental build.

Differential Revision: http://reviews.llvm.org/D18213

This is a recommit of r265095 after fixing the Windows issues.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 265111
12 files changed:
llvm/include/llvm/Bitcode/BitstreamReader.h
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/include/llvm/Bitcode/ReaderWriter.h
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/ModuleSummaryIndex.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/test/Bitcode/Inputs/module_hash.ll [new file with mode: 0644]
llvm/test/Bitcode/module_hash.ll [new file with mode: 0644]
llvm/tools/llvm-as/llvm-as.cpp
llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp