Andrew Lenharth | 120ab48 | 2005-09-29 22:54:56 +0000 | [diff] [blame] | 1 | //===- AlphaSubtarget.cpp - Alpha Subtarget Information ---------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Andrew Lenharth | 120ab48 | 2005-09-29 22:54:56 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file implements the Alpha specific subclass of TargetSubtarget. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "AlphaSubtarget.h" |
| 15 | #include "Alpha.h" |
Chris Lattner | ed465f5 | 2005-10-23 22:15:34 +0000 | [diff] [blame] | 16 | #include "AlphaGenSubtarget.inc" |
Andrew Lenharth | 120ab48 | 2005-09-29 22:54:56 +0000 | [diff] [blame] | 17 | using namespace llvm; |
| 18 | |
Andrew Lenharth | 120ab48 | 2005-09-29 22:54:56 +0000 | [diff] [blame] | 19 | AlphaSubtarget::AlphaSubtarget(const Module &M, const std::string &FS) |
Andrew Lenharth | 3553d86 | 2007-01-24 21:09:16 +0000 | [diff] [blame] | 20 | : HasCT(false) { |
Andrew Lenharth | ac35cd2 | 2005-09-30 20:24:38 +0000 | [diff] [blame] | 21 | std::string CPU = "generic"; |
Jim Laskey | 581a8f7 | 2005-10-26 17:30:34 +0000 | [diff] [blame] | 22 | |
| 23 | // Parse features string. |
| 24 | ParseSubtargetFeatures(FS, CPU); |
Andrew Lenharth | 120ab48 | 2005-09-29 22:54:56 +0000 | [diff] [blame] | 25 | } |