diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-11-28 02:35:09 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-11-28 02:35:09 +0000 |
commit | 11fad6ec660d2131e040ebdecc4433b359d05e5f (patch) | |
tree | 731026d366cd89def576dc58dcc74e88d3452f77 | |
parent | 6e1c4561e54da1f9d7052bcb4d985de513b4859c (diff) |
Move Target{Instr,Register}Info.cpp into lib/CodeGen.
The Target library is not allowed to depend on the large CodeGen
library, but the TRI and TII classes provide abstract interfaces that
require both caller and callee to link to CodeGen.
The implementation files for these classes provide default
implementations of some of the hooks. These methods may need to
reference CodeGen, so they belong in that library.
We already have a number of methods implemented in the
TargetInstrInfoImpl sub-class because of that. I will merge that class
into the parent next.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168758 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lib/CodeGen/TargetInstrInfo.cpp (renamed from lib/Target/TargetInstrInfo.cpp) | 0 | ||||
-rw-r--r-- | lib/CodeGen/TargetRegisterInfo.cpp (renamed from lib/Target/TargetRegisterInfo.cpp) | 0 | ||||
-rw-r--r-- | lib/Target/CMakeLists.txt | 2 |
4 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CMakeLists.txt b/lib/CodeGen/CMakeLists.txt index 7a20ff631e..3039242203 100644 --- a/lib/CodeGen/CMakeLists.txt +++ b/lib/CodeGen/CMakeLists.txt @@ -99,9 +99,11 @@ add_llvm_library(LLVMCodeGen StrongPHIElimination.cpp TailDuplication.cpp TargetFrameLoweringImpl.cpp + TargetInstrInfo.cpp TargetInstrInfoImpl.cpp TargetLoweringObjectFileImpl.cpp TargetOptionsImpl.cpp + TargetRegisterInfo.cpp TargetSchedule.cpp TwoAddressInstructionPass.cpp UnreachableBlockElim.cpp diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/CodeGen/TargetInstrInfo.cpp index f1d1d07c38..f1d1d07c38 100644 --- a/lib/Target/TargetInstrInfo.cpp +++ b/lib/CodeGen/TargetInstrInfo.cpp diff --git a/lib/Target/TargetRegisterInfo.cpp b/lib/CodeGen/TargetRegisterInfo.cpp index be8b582890..be8b582890 100644 --- a/lib/Target/TargetRegisterInfo.cpp +++ b/lib/CodeGen/TargetRegisterInfo.cpp diff --git a/lib/Target/CMakeLists.txt b/lib/Target/CMakeLists.txt index a85acaaa14..c87a33a8b9 100644 --- a/lib/Target/CMakeLists.txt +++ b/lib/Target/CMakeLists.txt @@ -1,14 +1,12 @@ add_llvm_library(LLVMTarget Mangler.cpp Target.cpp - TargetInstrInfo.cpp TargetIntrinsicInfo.cpp TargetJITInfo.cpp TargetLibraryInfo.cpp TargetLoweringObjectFile.cpp TargetMachine.cpp TargetMachineC.cpp - TargetRegisterInfo.cpp TargetSubtargetInfo.cpp TargetTransformImpl.cpp ) |