Merge branch 'master' into systemz
[llvm/systemz.git] / lib / Target / Alpha / AlphaSubtarget.h
blob0a944cb0a634b96c36865d5c992af4635581ddd6
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.
12 //===----------------------------------------------------------------------===//
14 #ifndef ALPHASUBTARGET_H
15 #define ALPHASUBTARGET_H
17 #include "llvm/Target/TargetInstrItineraries.h"
18 #include "llvm/Target/TargetSubtarget.h"
20 #include <string>
22 namespace llvm {
23 class Module;
25 class AlphaSubtarget : public TargetSubtarget {
26 protected:
28 bool HasCT;
30 InstrItineraryData InstrItins;
32 public:
33 /// This constructor initializes the data members to match that
34 /// of the specified module.
35 ///
36 AlphaSubtarget(const Module &M, const std::string &FS);
38 /// ParseSubtargetFeatures - Parses features string setting specified
39 /// subtarget options. Definition of function is auto generated by tblgen.
40 std::string ParseSubtargetFeatures(const std::string &FS,
41 const std::string &CPU);
43 bool hasCT() const { return HasCT; }
45 } // End llvm namespace
47 #endif