2005-09-29 22:54:56 +00:00
|
|
|
//===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2005-09-29 22:54:56 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-07-01 21:01:15 +00:00
|
|
|
// This file implements the Alpha specific subclass of TargetSubtargetInfo.
|
2005-09-29 22:54:56 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "AlphaSubtarget.h"
|
|
|
|
#include "Alpha.h"
|
2011-07-01 20:45:01 +00:00
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
2011-07-08 01:53:10 +00:00
|
|
|
#define GET_SUBTARGETINFO_CTOR
|
2011-07-01 22:36:09 +00:00
|
|
|
#include "AlphaGenSubtargetInfo.inc"
|
2011-07-01 20:45:01 +00:00
|
|
|
|
2005-09-29 22:54:56 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2011-06-30 01:53:36 +00:00
|
|
|
AlphaSubtarget::AlphaSubtarget(const std::string &TT, const std::string &CPU,
|
|
|
|
const std::string &FS)
|
2011-07-07 07:07:08 +00:00
|
|
|
: AlphaGenSubtargetInfo(TT, CPU, FS), HasCT(false) {
|
2011-06-30 01:53:36 +00:00
|
|
|
std::string CPUName = CPU;
|
|
|
|
if (CPUName.empty())
|
|
|
|
CPUName = "generic";
|
2005-10-26 17:30:34 +00:00
|
|
|
|
|
|
|
// Parse features string.
|
2011-07-07 07:07:08 +00:00
|
|
|
ParseSubtargetFeatures(CPUName, FS);
|
2011-07-01 20:45:01 +00:00
|
|
|
|
|
|
|
// Initialize scheduling itinerary for the specified CPU.
|
|
|
|
InstrItins = getInstrItineraryForCPU(CPUName);
|
2005-09-29 22:54:56 +00:00
|
|
|
}
|