blob: b1ccf26b1804a2ddd79e512317662972d89258c8 [file] [log] [blame]
Andrew Lenharth120ab482005-09-29 22:54:56 +00001//=====-- AlphaSubtarget.h - Define Subtarget for the Alpha --*- 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 declares the Alpha specific subclass of TargetSubtarget.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef ALPHASUBTARGET_H
15#define ALPHASUBTARGET_H
16
17#include "llvm/Target/TargetSubtarget.h"
Evan Chengab8be962011-06-29 01:14:12 +000018#include "llvm/MC/MCInstrItineraries.h"
Andrew Lenharth120ab482005-09-29 22:54:56 +000019#include <string>
20
21namespace llvm {
Andrew Lenharth120ab482005-09-29 22:54:56 +000022
23class AlphaSubtarget : public TargetSubtarget {
24protected:
25
Andrew Lenharth120ab482005-09-29 22:54:56 +000026 bool HasCT;
27
Andrew Lenharth017c5562006-03-09 17:16:45 +000028 InstrItineraryData InstrItins;
29
Andrew Lenharth120ab482005-09-29 22:54:56 +000030public:
31 /// This constructor initializes the data members to match that
Daniel Dunbar3be03402009-08-02 22:11:08 +000032 /// of the specified triple.
Andrew Lenharth120ab482005-09-29 22:54:56 +000033 ///
Evan Cheng276365d2011-06-30 01:53:36 +000034 AlphaSubtarget(const std::string &TT, const std::string &CPU,
35 const std::string &FS);
Jim Laskey581a8f72005-10-26 17:30:34 +000036
37 /// ParseSubtargetFeatures - Parses features string setting specified
Jim Laskey2cbc2072005-10-26 18:07:50 +000038 /// subtarget options. Definition of function is auto generated by tblgen.
Evan Cheng276365d2011-06-30 01:53:36 +000039 void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
Andrew Lenharth120ab482005-09-29 22:54:56 +000040
Andrew Lenharth120ab482005-09-29 22:54:56 +000041 bool hasCT() const { return HasCT; }
42};
43} // End llvm namespace
44
45#endif