[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
import pass.
Depends on D15024
http://reviews.llvm.org/D15025
Files:
include/clang/Driver/Options.td
include/clang/Driver/Types.h
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CodeGenAction.cpp
lib/Driver/Tools.cpp
lib/Driver/Types.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/thinlto_backend.c
test/Driver/thinlto_backend.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15025.41251.patch
Type: text/x-patch
Size: 12277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151126/4aa47a44/attachment.bin>
More information about the cfe-commits
mailing list