Add a FunctionImporter helper to perform summary-based cross-module function importing
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 24 Nov 2015 06:07:49 +0000 (06:07 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 24 Nov 2015 06:07:49 +0000 (06:07 +0000)
commita7649e87bb21bc913ae78a399a35354866b8dd72
tree9abbb951bc5e014cb386dcb0c414b005dd0e5207
parent4857f32de4fa88a5025dd982d48f2e367c4afe88
Add a FunctionImporter helper to perform summary-based cross-module function importing

Summary:
This is a helper to perform cross-module import for ThinLTO. Right now
it is importing naively every possible called functions.

Reviewers: tejohnson

Subscribers: dexonsmith, llvm-commits

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

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253954 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/InitializePasses.h
include/llvm/Transforms/IPO/FunctionImport.h [new file with mode: 0644]
lib/Transforms/IPO/CMakeLists.txt
lib/Transforms/IPO/FunctionImport.cpp [new file with mode: 0644]
lib/Transforms/IPO/IPO.cpp
lib/Transforms/IPO/LLVMBuild.txt
test/Transforms/FunctionImport/Inputs/funcimport.ll [new file with mode: 0644]
test/Transforms/FunctionImport/funcimport.ll [new file with mode: 0644]