1 //=====-- AlphaSubtarget.h - Define Subtarget for the Alpha --*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Andrew Lenharth and is distributed under the
6 // University of Illinois Open Source 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/TargetInstrItineraries.h"
18 #include "llvm/Target/TargetSubtarget.h"
25 class AlphaSubtarget : public TargetSubtarget {
28 /// Used by the ISel to turn in optimizations for POWER4-derived architectures
32 InstrItineraryData InstrItins;
35 /// This constructor initializes the data members to match that
36 /// of the specified module.
38 AlphaSubtarget(const Module &M, const std::string &FS);
40 /// ParseSubtargetFeatures - Parses features string setting specified
41 /// subtarget options. Definition of function is auto generated by tblgen.
42 void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
44 bool hasF2I() const { return HasF2I; }
45 bool hasCT() const { return HasCT; }
47 } // End llvm namespace