Rename XXXGenSubtarget.inc to XXXGenSubtargetInfo.inc for consistency.
[oota-llvm.git] / lib / Target / Alpha / AlphaSubtarget.cpp
1 //===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the Alpha specific subclass of TargetSubtargetInfo.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "AlphaSubtarget.h"
15 #include "Alpha.h"
16
17 #define GET_SUBTARGETINFO_CTOR
18 #define GET_SUBTARGETINFO_MC_DESC
19 #define GET_SUBTARGETINFO_TARGET_DESC
20 #include "AlphaGenSubtargetInfo.inc"
21
22 using namespace llvm;
23
24 AlphaSubtarget::AlphaSubtarget(const std::string &TT, const std::string &CPU,
25                                const std::string &FS)
26   : AlphaGenSubtargetInfo(), HasCT(false) {
27   std::string CPUName = CPU;
28   if (CPUName.empty())
29     CPUName = "generic";
30
31   // Parse features string.
32   ParseSubtargetFeatures(FS, CPUName);
33
34   // Initialize scheduling itinerary for the specified CPU.
35   InstrItins = getInstrItineraryForCPU(CPUName);
36 }