7080327f1db4cbcab4dfe7866ad3b726bd125096
[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 TargetSubtarget.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "AlphaSubtarget.h"
15 #include "Alpha.h"
16 #include "AlphaGenSubtarget.inc"
17 using namespace llvm;
18
19 AlphaSubtarget::AlphaSubtarget(const std::string &TT, const std::string &CPU,
20                                const std::string &FS)
21   : HasCT(false) {
22   std::string CPUName = CPU;
23   if (CPUName.empty())
24     CPUName = "generic";
25
26   // Parse features string.
27   ParseSubtargetFeatures(FS, CPUName);
28 }