[PATCH] D15024: [ThinLTO] Support for specifying function index from pass manager

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 07:15:05 PST 2015


tejohnson created this revision.
tejohnson added reviewers: joker.eph, dexonsmith.
tejohnson added subscribers: llvm-commits, davidxl.
Herald added a subscriber: joker.eph.

Add a field on the PassManagerBuilder that clang or gold can use to pass
down the function index file to use for importing when the ThinLTO
backend is triggered. Add support to supply this to the function import
pass.

Also add support to the Linker::LinkModules interface used by clang
for passing down the index so that exported local values can be
promoted and renamed early.

http://reviews.llvm.org/D15024

Files:
  include/llvm/LinkAllPasses.h
  include/llvm/Linker/Linker.h
  include/llvm/Transforms/IPO.h
  include/llvm/Transforms/IPO/PassManagerBuilder.h
  lib/Linker/LinkModules.cpp
  lib/Transforms/IPO/FunctionImport.cpp
  lib/Transforms/IPO/PassManagerBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15024.41250.patch
Type: text/x-patch
Size: 6304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151126/5a1f604f/attachment.bin>


More information about the llvm-commits mailing list