From fcf14e8436aab2fbf9cec61193e6e40ae22b5610 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Wed, 28 Nov 2012 02:35:09 +0000 Subject: [PATCH] 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 --- llvm/lib/CodeGen/CMakeLists.txt | 2 ++ llvm/lib/{Target => CodeGen}/TargetInstrInfo.cpp | 0 llvm/lib/{Target => CodeGen}/TargetRegisterInfo.cpp | 0 llvm/lib/Target/CMakeLists.txt | 2 -- 4 files changed, 2 insertions(+), 2 deletions(-) rename llvm/lib/{Target => CodeGen}/TargetInstrInfo.cpp (100%) rename llvm/lib/{Target => CodeGen}/TargetRegisterInfo.cpp (100%) diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt index 7a20ff6..3039242 100644 --- a/llvm/lib/CodeGen/CMakeLists.txt +++ b/llvm/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/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp similarity index 100% rename from llvm/lib/Target/TargetInstrInfo.cpp rename to llvm/lib/CodeGen/TargetInstrInfo.cpp diff --git a/llvm/lib/Target/TargetRegisterInfo.cpp b/llvm/lib/CodeGen/TargetRegisterInfo.cpp similarity index 100% rename from llvm/lib/Target/TargetRegisterInfo.cpp rename to llvm/lib/CodeGen/TargetRegisterInfo.cpp diff --git a/llvm/lib/Target/CMakeLists.txt b/llvm/lib/Target/CMakeLists.txt index a85acaa..c87a33a 100644 --- a/llvm/lib/Target/CMakeLists.txt +++ b/llvm/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 ) -- 2.7.4