diff options
author | Quentin Colombet <qcolombet@apple.com> | 2014-02-22 00:07:45 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2014-02-22 00:07:45 +0000 |
commit | 8048c44580056994eb0f2804e2914badc8fbef43 (patch) | |
tree | f1f2b3eb34650e8e2e8dc470e71c3776c6c0eb9a /lib/CodeGen/CodeGen.cpp | |
parent | 0206b30ea6ca3cdd04d968ca676ccb025ef75158 (diff) | |
download | llvm-8048c44580056994eb0f2804e2914badc8fbef43.tar.gz llvm-8048c44580056994eb0f2804e2914badc8fbef43.tar.bz2 llvm-8048c44580056994eb0f2804e2914badc8fbef43.tar.xz |
[CodeGenPrepare] Move CodeGenPrepare into lib/CodeGen.
CodeGenPrepare uses extensively TargetLowering which is part of libLLVMCodeGen.
This is a layer violation which would introduce eventually a dependence on
CodeGen in ScalarOpts.
Move CodeGenPrepare into libLLVMCodeGen to avoid that.
Follow-up of <rdar://problem/15519855>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGen.cpp')
-rw-r--r-- | lib/CodeGen/CodeGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGen.cpp b/lib/CodeGen/CodeGen.cpp index c0db5a54b8..17402f066d 100644 --- a/lib/CodeGen/CodeGen.cpp +++ b/lib/CodeGen/CodeGen.cpp @@ -22,6 +22,7 @@ using namespace llvm; void llvm::initializeCodeGen(PassRegistry &Registry) { initializeBasicTTIPass(Registry); initializeBranchFolderPassPass(Registry); + initializeCodeGenPreparePass(Registry); initializeDeadMachineInstructionElimPass(Registry); initializeEarlyIfConverterPass(Registry); initializeExpandPostRAPass(Registry); |