[ThinLTO] Include linkage type in function summary
authorTeresa Johnson <tejohnson@google.com>
Sat, 6 Feb 2016 16:07:35 +0000 (16:07 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 6 Feb 2016 16:07:35 +0000 (16:07 +0000)
commit5e22e4461d23130484dfdc83d2646f1a92d8e74d
treec325e41e05c24cfba8d985fef7e09f3d143ce6bb
parent63b1ecab7ddc4d766263415c70f0794cedc2c11f
[ThinLTO] Include linkage type in function summary

Summary:
Adds the linkage type to both the per-module and combined function
summaries, which subsumes the current islocal bit. This will eventually
be used to optimized linkage types based on global summary-based
analysis.

Reviewers: joker.eph

Subscribers: joker.eph, davidxl, llvm-commits

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

llvm-svn: 259993
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/include/llvm/IR/FunctionInfo.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/FunctionInfo.cpp
llvm/test/Bitcode/thinlto-function-summary.ll
llvm/test/Bitcode/thinlto-summary-linkage-types.ll [new file with mode: 0644]