Sink SubtargetFeature and TargetInstrItineraries (renamed MCInstrItineraries) into MC.
[oota-llvm.git] / lib / Target / Alpha / AlphaSubtarget.h
1 //=====-- AlphaSubtarget.h - Define Subtarget for the Alpha --*- 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 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"
18 #include "llvm/MC/MCInstrItineraries.h"
19 #include <string>
20
21 namespace llvm {
22
23 class AlphaSubtarget : public TargetSubtarget {
24 protected:
25
26   bool HasCT;
27
28   InstrItineraryData InstrItins;
29
30 public:
31   /// This constructor initializes the data members to match that
32   /// of the specified triple.
33   ///
34   AlphaSubtarget(const std::string &TT, const std::string &FS);
35   
36   /// ParseSubtargetFeatures - Parses features string setting specified 
37   /// subtarget options.  Definition of function is auto generated by tblgen.
38   std::string ParseSubtargetFeatures(const std::string &FS,
39                                      const std::string &CPU);
40
41   bool hasCT() const { return HasCT; }
42 };
43 } // End llvm namespace
44
45 #endif