TargetSubtargetInfo: Move implementation to lib/CodeGen; NFC
authorMatthias Braun <matze@braunis.de>
Tue, 22 Nov 2016 22:09:03 +0000 (22:09 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 22 Nov 2016 22:09:03 +0000 (22:09 +0000)
TargetSubtargetInfo is filled with CodeGen specific interfaces nowadays
(getInstrInfo(), getFrameLowering(), getSelectionDAGInfo()) most of the
tuning flags like enablePostRAScheduler(), getAntiDepBreakMode(),
enableRALocalReassignment(), ... also do not seem to be universal enough
to make sense outside of CodeGen.

Differential Revision: https://reviews.llvm.org/D26948

llvm-svn: 287708

llvm/lib/CodeGen/CMakeLists.txt
llvm/lib/CodeGen/TargetSubtargetInfo.cpp [moved from llvm/lib/Target/TargetSubtargetInfo.cpp with 96% similarity]
llvm/lib/Target/CMakeLists.txt

index b08e752..398ea88 100644 (file)
@@ -136,6 +136,7 @@ add_llvm_library(LLVMCodeGen
   TargetPassConfig.cpp
   TargetRegisterInfo.cpp
   TargetSchedule.cpp
+  TargetSubtargetInfo.cpp
   TwoAddressInstructionPass.cpp
   UnreachableBlockElim.cpp
   VirtRegMap.cpp
similarity index 96%
rename from llvm/lib/Target/TargetSubtargetInfo.cpp
rename to llvm/lib/CodeGen/TargetSubtargetInfo.cpp
index c3f94a9..c74707d 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// This file describes the general parts of a Subtarget.
+/// \file This file describes the general parts of a Subtarget.
 //
 //===----------------------------------------------------------------------===//
 
index 1805437..02b0300 100644 (file)
@@ -6,7 +6,6 @@ add_llvm_library(LLVMTarget
   TargetLoweringObjectFile.cpp
   TargetMachine.cpp
   TargetMachineC.cpp
-  TargetSubtargetInfo.cpp
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Target