]> granicus.if.org Git - llvm/commitdiff
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287708 91177308-0d34-0410-b5e6-96231b3b80d8

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

index b08e7524f6347f380fbb2bc00118f99f94057317..398ea88363b64c232df4f67fade950bcd08d0562 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 lib/Target/TargetSubtargetInfo.cpp
rename to lib/CodeGen/TargetSubtargetInfo.cpp
index c3f94a99b4ca220edfcfb172b60007309f5886f9..c74707d95b9e72997c7eefe9aac54727eba2e6a0 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 1805437b12f71575ac5579e47d3a1276bfac4fbc..02b030004d459ec45d3835c0dd8cdcf0de1ad7f6 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