1 //===-- TargetSubtargetInfo.cpp - General Target Information ---------------==//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file describes the general parts of a Subtarget.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Support/CommandLine.h"
15 #include "llvm/ADT/SmallVector.h"
16 #include "llvm/Target/TargetSubtargetInfo.h"
19 //---------------------------------------------------------------------------
20 // TargetSubtargetInfo Class
22 TargetSubtargetInfo::TargetSubtargetInfo() {}
24 TargetSubtargetInfo::~TargetSubtargetInfo() {}
26 bool TargetSubtargetInfo::enableAtomicExpand() const {
30 bool TargetSubtargetInfo::enableMachineScheduler() const {
34 bool TargetSubtargetInfo::enableJoinGlobalCopies() const {
35 return enableMachineScheduler();
38 bool TargetSubtargetInfo::enableRALocalReassignment(
39 CodeGenOpt::Level OptLevel) const {
43 bool TargetSubtargetInfo::enablePostMachineScheduler() const {
44 return getSchedModel().PostRAScheduler;
47 bool TargetSubtargetInfo::useAA() const {