OSDN Git Service

[ThinLTO] Add option to emit imports files for distributed backends
authorTeresa Johnson <tejohnson@google.com>
Tue, 10 May 2016 15:54:09 +0000 (15:54 +0000)
committerTeresa Johnson <tejohnson@google.com>
Tue, 10 May 2016 15:54:09 +0000 (15:54 +0000)
commit4b05ce2d0d288ee67f47587018e19a4312d6e40b
treeb3a4f9b002d30ce3c7d6c006c86f64d4b5d4c57e
parent50b2db8fa0ced32310fcc8676a4ff891920523fe
[ThinLTO] Add option to emit imports files for distributed backends

Summary:
Add support for emission of plaintext lists of the imported files for
each distributed backend compilation. Used for distributed build file
staging.

Invoked with new gold-plugin thinlto-emit-imports-files option, which is
only valid with thinlto-index-only (i.e. for distributed builds), or
from llvm-lto with new -thinlto-action=emitimports value.

Depends on D19556.

Reviewers: joker.eph

Subscribers: llvm-commits, joker.eph

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269067 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/LTO/ThinLTOCodeGenerator.h
include/llvm/Transforms/IPO/FunctionImport.h
lib/LTO/ThinLTOCodeGenerator.cpp
lib/Transforms/IPO/FunctionImport.cpp
test/ThinLTO/X86/Inputs/emit_imports.ll [new file with mode: 0644]
test/ThinLTO/X86/emit_imports.ll [new file with mode: 0644]
test/tools/gold/X86/thinlto_emit_imports.ll [new file with mode: 0644]
tools/gold/gold-plugin.cpp
tools/llvm-lto/llvm-lto.cpp