freebsd-dev/contrib/llvm/lib/Target/TargetSubtargetInfo.cpp

50 lines
1.3 KiB
C++
Raw Normal View History

//===-- TargetSubtargetInfo.cpp - General Target Information ---------------==//
2009-06-02 17:52:33 +00:00
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file describes the general parts of a Subtarget.
//
//===----------------------------------------------------------------------===//
#include "llvm/Support/CommandLine.h"
2009-11-18 14:58:34 +00:00
#include "llvm/ADT/SmallVector.h"
#include "llvm/Target/TargetSubtargetInfo.h"
2009-06-02 17:52:33 +00:00
using namespace llvm;
//---------------------------------------------------------------------------
// TargetSubtargetInfo Class
2009-06-02 17:52:33 +00:00
//
TargetSubtargetInfo::TargetSubtargetInfo() {}
2009-06-02 17:52:33 +00:00
TargetSubtargetInfo::~TargetSubtargetInfo() {}
2009-11-18 14:58:34 +00:00
bool TargetSubtargetInfo::enableAtomicExpand() const {
return true;
}
bool TargetSubtargetInfo::enableMachineScheduler() const {
return false;
}
bool TargetSubtargetInfo::enableJoinGlobalCopies() const {
return enableMachineScheduler();
}
bool TargetSubtargetInfo::enableRALocalReassignment(
CodeGenOpt::Level OptLevel) const {
return true;
}
bool TargetSubtargetInfo::enablePostRAScheduler() const {
return getSchedModel().PostRAScheduler;
2009-11-18 14:58:34 +00:00
}
bool TargetSubtargetInfo::useAA() const {
return false;
}