Move Target{Instr,Register}Info.cpp into lib/CodeGen.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 28 Nov 2012 02:35:09 +0000 (02:35 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 28 Nov 2012 02:35:09 +0000 (02:35 +0000)
commit11fad6ec660d2131e040ebdecc4433b359d05e5f
tree731026d366cd89def576dc58dcc74e88d3452f77
parent6e1c4561e54da1f9d7052bcb4d985de513b4859c
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
lib/CodeGen/CMakeLists.txt
lib/CodeGen/TargetInstrInfo.cpp [new file with mode: 0644]
lib/CodeGen/TargetRegisterInfo.cpp [new file with mode: 0644]
lib/Target/CMakeLists.txt
lib/Target/TargetInstrInfo.cpp [deleted file]
lib/Target/TargetRegisterInfo.cpp [deleted file]