blob: 7080327f1db4cbcab4dfe7866ad3b726bd125096 [file] [log] [blame]
Andrew Lenharth120ab482005-09-29 22:54:56 +00001//===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Andrew Lenharth120ab482005-09-29 22:54:56 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the Alpha specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
14#include "AlphaSubtarget.h"
15#include "Alpha.h"
Chris Lattnered465f52005-10-23 22:15:34 +000016#include "AlphaGenSubtarget.inc"
Andrew Lenharth120ab482005-09-29 22:54:56 +000017using namespace llvm;
18
Evan Cheng276365d2011-06-30 01:53:36 +000019AlphaSubtarget::AlphaSubtarget(const std::string &TT, const std::string &CPU,
20 const std::string &FS)
Andrew Lenharth3553d862007-01-24 21:09:16 +000021 : HasCT(false) {
Evan Cheng276365d2011-06-30 01:53:36 +000022 std::string CPUName = CPU;
23 if (CPUName.empty())
24 CPUName = "generic";
Jim Laskey581a8f72005-10-26 17:30:34 +000025
26 // Parse features string.
Evan Cheng276365d2011-06-30 01:53:36 +000027 ParseSubtargetFeatures(FS, CPUName);
Andrew Lenharth120ab482005-09-29 22:54:56 +000028}