[PATCH] D15025: [ThinLTO] Option to invoke ThinLTO backend passes and importing
Teresa Johnson via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 26 07:16:43 PST 2015
tejohnson created this revision.
tejohnson added reviewers: joker.eph, dexonsmith.
tejohnson added subscribers: cfe-commits, davidxl.
tejohnson added a dependency: D15024: [ThinLTO] Support for specifying function index from pass manager.
Herald added a subscriber: joker.eph.
Adds new option -fthinlto-backend=<file> to invoke the LTO pipeline
along with function importing via clang using the supplied function
summary index file. This supports invoking the parallel ThinLTO
backend processes in a distributed build environment via clang.
Additionally, this causes the module linker to be invoked on the bitcode
file being compiled to perform any necessary promotion and renaming of
locals that are exported via the function summary index file.
Add a couple tests that confirm we get expected errors when we try to
use the new option on a file that isn't bitcode, or specify an invalid
index file. The tests also confirm that we trigger the expected function
Depends on D15024
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12277 bytes
Desc: not available
More information about the cfe-commits