From 882a0815047be4f3d5844eaea1dcf4449c42077d Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 22 Nov 2016 22:09:03 +0000 Subject: [PATCH] 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 llvm-svn: 287708 --- lib/CodeGen/CMakeLists.txt | 1 + lib/{Target => CodeGen}/TargetSubtargetInfo.cpp | 2 +- lib/Target/CMakeLists.txt | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) rename lib/{Target => CodeGen}/TargetSubtargetInfo.cpp (96%) 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