[CodeGenPrepare] Move CodeGenPrepare into lib/CodeGen.
authorQuentin Colombet <qcolombet@apple.com>
Sat, 22 Feb 2014 00:07:45 +0000 (00:07 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Sat, 22 Feb 2014 00:07:45 +0000 (00:07 +0000)
commit8048c44580056994eb0f2804e2914badc8fbef43
treef1f2b3eb34650e8e2e8dc470e71c3776c6c0eb9a
parent0206b30ea6ca3cdd04d968ca676ccb025ef75158
[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
15 files changed:
include/llvm/CodeGen/Passes.h
include/llvm/Transforms/Scalar.h
lib/CodeGen/CMakeLists.txt
lib/CodeGen/CodeGen.cpp
lib/CodeGen/CodeGenPrepare.cpp [new file with mode: 0644]
lib/Transforms/Scalar/CMakeLists.txt
lib/Transforms/Scalar/CodeGenPrepare.cpp [deleted file]
lib/Transforms/Scalar/Scalar.cpp
tools/bugpoint/CMakeLists.txt
tools/bugpoint/LLVMBuild.txt
tools/bugpoint/Makefile
tools/opt/CMakeLists.txt
tools/opt/LLVMBuild.txt
tools/opt/Makefile
tools/opt/opt.cpp