[PATCH] D13847: llvm-lto support for generating combined function indexes

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 17 08:21:46 PDT 2015


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

This patch adds support to llvm-lto that mirrors the support added by
r249270 to the gold plugin. This enables better testing of combined
index generation for ThinLTO.

Added a new test, and this support will be used in the test in D13515.

Note that the support directly uses lib/Object interfaces, since there
are no lib/LTO interfaces for function indexes (yet). This is similar to
gold which no longer uses lib/LTO interfaces. In order to add lto.h/.cpp
interfaces for function indexes (for linkers other than gold), is it
necessary to add lib/LTO support for function indexes, or can the lto
interfaces use lib/Object directly as gold does? Depending on the answer
to that I may want to add lib/LTO support as part of this patch and
use that in llvm-lto.

http://reviews.llvm.org/D13847

Files:
  test/tools/llvm-lto/Inputs/thinlto.ll
  test/tools/llvm-lto/thinlto.ll
  tools/llvm-lto/CMakeLists.txt
  tools/llvm-lto/LLVMBuild.txt
  tools/llvm-lto/llvm-lto.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13847.37682.patch
Type: text/x-patch
Size: 5626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151017/0b10c7d2/attachment.bin>


More information about the llvm-commits mailing list