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 /// \file This file describes the general parts of a Subtarget.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Target/TargetSubtargetInfo.h"
17 //---------------------------------------------------------------------------
18 // TargetSubtargetInfo Class
20 TargetSubtargetInfo::TargetSubtargetInfo(
21 const Triple &TT, StringRef CPU, StringRef FS,
22 ArrayRef<SubtargetFeatureKV> PF, ArrayRef<SubtargetFeatureKV> PD,
23 const SubtargetInfoKV *ProcSched, const MCWriteProcResEntry *WPR,
24 const MCWriteLatencyEntry *WL, const MCReadAdvanceEntry *RA,
25 const InstrStage *IS, const unsigned *OC, const unsigned *FP)
26 : MCSubtargetInfo(TT, CPU, FS, PF, PD, ProcSched, WPR, WL, RA, IS, OC, FP) {
29 TargetSubtargetInfo::~TargetSubtargetInfo() {}
31 bool TargetSubtargetInfo::enableAtomicExpand() const {
35 bool TargetSubtargetInfo::enableMachineScheduler() const {
39 bool TargetSubtargetInfo::enableJoinGlobalCopies() const {
40 return enableMachineScheduler();
43 bool TargetSubtargetInfo::enableRALocalReassignment(
44 CodeGenOpt::Level OptLevel) const {
48 bool TargetSubtargetInfo::enablePostRAScheduler() const {
49 return getSchedModel().PostRAScheduler;
52 bool TargetSubtargetInfo::useAA() const {