Add an internalization step to the ThinLTOCodeGenerator
authorMehdi Amini <mehdi.amini@apple.com>
Sun, 24 Apr 2016 03:18:01 +0000 (03:18 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sun, 24 Apr 2016 03:18:01 +0000 (03:18 +0000)
commit059464fe3690348c1bc0f3735354ad90c3796471
tree424af353a197364d0979eb3aa2187e056fcd8401
parent7fa5970e690bfc0a40bd32a919a4f5d9eaa7bd5a
Add an internalization step to the ThinLTOCodeGenerator

Keeping as much as possible internal/private is
known to help the optimizer. Let's try to benefit from
this in ThinLTO.
Note: this is early work, but is enough to build clang (and
all the LLVM tools). I still need to write some lit-tests...

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

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 267317
llvm/include/llvm/LTO/ThinLTOCodeGenerator.h
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/test/ThinLTO/X86/internalize.ll [new file with mode: 0644]
llvm/tools/llvm-lto/llvm-lto.cpp