1 //=====-- AlphaSubtarget.h - Define Subtarget for the Alpha --*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the Alpha specific subclass of TargetSubtarget.
12 //===----------------------------------------------------------------------===//
14 #ifndef ALPHASUBTARGET_H
15 #define ALPHASUBTARGET_H
17 #include "llvm/Target/TargetSubtarget.h"
18 #include "llvm/MC/MCInstrItineraries.h"
23 class AlphaSubtarget : public TargetSubtarget {
28 InstrItineraryData InstrItins;
31 /// This constructor initializes the data members to match that
32 /// of the specified triple.
34 AlphaSubtarget(const std::string &TT, const std::string &FS);
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);
41 bool hasCT() const { return HasCT; }
43 } // End llvm namespace