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.

llvm-svn: 168758
This commit is contained in:
Jakob Stoklund Olesen 2012-11-28 02:35:09 +00:00
parent 18035d7125
commit fcf14e8436
4 changed files with 2 additions and 2 deletions

View File

@ -99,9 +99,11 @@ add_llvm_library(LLVMCodeGen
StrongPHIElimination.cpp StrongPHIElimination.cpp
TailDuplication.cpp TailDuplication.cpp
TargetFrameLoweringImpl.cpp TargetFrameLoweringImpl.cpp
TargetInstrInfo.cpp
TargetInstrInfoImpl.cpp TargetInstrInfoImpl.cpp
TargetLoweringObjectFileImpl.cpp TargetLoweringObjectFileImpl.cpp
TargetOptionsImpl.cpp TargetOptionsImpl.cpp
TargetRegisterInfo.cpp
TargetSchedule.cpp TargetSchedule.cpp
TwoAddressInstructionPass.cpp TwoAddressInstructionPass.cpp
UnreachableBlockElim.cpp UnreachableBlockElim.cpp

View File

@ -1,14 +1,12 @@
add_llvm_library(LLVMTarget add_llvm_library(LLVMTarget
Mangler.cpp Mangler.cpp
Target.cpp Target.cpp
TargetInstrInfo.cpp
TargetIntrinsicInfo.cpp TargetIntrinsicInfo.cpp
TargetJITInfo.cpp TargetJITInfo.cpp
TargetLibraryInfo.cpp TargetLibraryInfo.cpp
TargetLoweringObjectFile.cpp TargetLoweringObjectFile.cpp
TargetMachine.cpp TargetMachine.cpp
TargetMachineC.cpp TargetMachineC.cpp
TargetRegisterInfo.cpp
TargetSubtargetInfo.cpp TargetSubtargetInfo.cpp
TargetTransformImpl.cpp TargetTransformImpl.cpp
) )