From: Matthias Braun Date: Tue, 22 Nov 2016 22:09:03 +0000 (+0000) Subject: TargetSubtargetInfo: Move implementation to lib/CodeGen; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e436226fa30b536820ed93d752a5a1d752d39ee6;p=llvm TargetSubtargetInfo: Move implementation to lib/CodeGen; NFC 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 --- diff --git a/lib/CodeGen/CMakeLists.txt b/lib/CodeGen/CMakeLists.txt index b08e7524f63..398ea88363b 100644 --- a/lib/CodeGen/CMakeLists.txt +++ b/lib/CodeGen/CMakeLists.txt @@ -136,6 +136,7 @@ add_llvm_library(LLVMCodeGen TargetPassConfig.cpp TargetRegisterInfo.cpp TargetSchedule.cpp + TargetSubtargetInfo.cpp TwoAddressInstructionPass.cpp UnreachableBlockElim.cpp VirtRegMap.cpp diff --git a/lib/Target/TargetSubtargetInfo.cpp b/lib/CodeGen/TargetSubtargetInfo.cpp similarity index 96% rename from lib/Target/TargetSubtargetInfo.cpp rename to lib/CodeGen/TargetSubtargetInfo.cpp index c3f94a99b4c..c74707d95b9 100644 --- a/lib/Target/TargetSubtargetInfo.cpp +++ b/lib/CodeGen/TargetSubtargetInfo.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// // -// This file describes the general parts of a Subtarget. +/// \file This file describes the general parts of a Subtarget. // //===----------------------------------------------------------------------===// diff --git a/lib/Target/CMakeLists.txt b/lib/Target/CMakeLists.txt index 1805437b12f..02b030004d4 100644 --- a/lib/Target/CMakeLists.txt +++ b/lib/Target/CMakeLists.txt @@ -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