diff options
author | James Molloy <james.molloy@arm.com> | 2013-05-28 15:17:05 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2013-05-28 15:17:05 +0000 |
commit | a84a83bbcdfaecadfc6574094272fd3edc429a23 (patch) | |
tree | ca87000d15263653ac635164ab194745b87f46e6 /include/llvm/Transforms/Utils/Cloning.h | |
parent | 9903f75bf6ec4136bd752595c689db845eedad3d (diff) | |
download | external_llvm-a84a83bbcdfaecadfc6574094272fd3edc429a23.zip external_llvm-a84a83bbcdfaecadfc6574094272fd3edc429a23.tar.gz external_llvm-a84a83bbcdfaecadfc6574094272fd3edc429a23.tar.bz2 |
Extend RemapInstruction and friends to take an optional new parameter, a ValueMaterializer.
Extend LinkModules to pass a ValueMaterializer to RemapInstruction and friends to lazily create Functions for lazily linked globals. This is a big win when linking small modules with large (mostly unused) library modules.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Cloning.h')
-rw-r--r-- | include/llvm/Transforms/Utils/Cloning.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h index 14212f6..3ec1329 100644 --- a/include/llvm/Transforms/Utils/Cloning.h +++ b/include/llvm/Transforms/Utils/Cloning.h @@ -131,7 +131,8 @@ void CloneFunctionInto(Function *NewFunc, const Function *OldFunc, SmallVectorImpl<ReturnInst*> &Returns, const char *NameSuffix = "", ClonedCodeInfo *CodeInfo = 0, - ValueMapTypeRemapper *TypeMapper = 0); + ValueMapTypeRemapper *TypeMapper = 0, + ValueMaterializer *Materializer = 0); /// CloneAndPruneFunctionInto - This works exactly like CloneFunctionInto, /// except that it does some simple constant prop and DCE on the fly. The |