blob: 7080327f1db4cbcab4dfe7866ad3b726bd125096 [file] [log] [blame]
Andrew Lenhartha7a83b92005-09-29 22:54:56 +00001//===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattnerf3ebc3f2007-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 Lenhartha7a83b92005-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 Lattner766361e2005-10-23 22:15:34 +000016#include "AlphaGenSubtarget.inc"
Andrew Lenhartha7a83b92005-09-29 22:54:56 +000017using namespace llvm;
18
Evan Chengfe6e4052011-06-30 01:53:36 +000019AlphaSubtarget::AlphaSubtarget(const std::string &TT, const std::string &CPU,
20 const std::string &FS)
Andrew Lenharthc4bdea02007-01-24 21:09:16 +000021 : HasCT(false) {
Evan Chengfe6e4052011-06-30 01:53:36 +000022 std::string CPUName = CPU;
23 if (CPUName.empty())
24 CPUName = "generic";
Jim Laskeya2b52352005-10-26 17:30:34 +000025
26 // Parse features string.
Evan Chengfe6e4052011-06-30 01:53:36 +000027 ParseSubtargetFeatures(FS, CPUName);
Andrew Lenhartha7a83b92005-09-29 22:54:56 +000028}