1 //===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===//
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 implements the Alpha specific subclass of TargetSubtargetInfo.
12 //===----------------------------------------------------------------------===//
14 #include "AlphaSubtarget.h"
16 #include "llvm/Target/TargetRegistry.h"
18 #define GET_SUBTARGETINFO_TARGET_DESC
19 #define GET_SUBTARGETINFO_CTOR
20 #include "AlphaGenSubtargetInfo.inc"
24 AlphaSubtarget::AlphaSubtarget(const std::string &TT, const std::string &CPU,
25 const std::string &FS)
26 : AlphaGenSubtargetInfo(TT, CPU, FS), HasCT(false) {
27 std::string CPUName = CPU;
31 // Parse features string.
32 ParseSubtargetFeatures(CPUName, FS);
34 // Initialize scheduling itinerary for the specified CPU.
35 InstrItins = getInstrItineraryForCPU(CPUName);