LLVM API Documentation

AlphaSubtarget.h

Go to the documentation of this file.
00001 //=====-- AlphaSubtarget.h - Define Subtarget for the Alpha --*- C++ -*--====//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file declares the Alpha specific subclass of TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef ALPHASUBTARGET_H
00015 #define ALPHASUBTARGET_H
00016 
00017 #include "llvm/Target/TargetInstrItineraries.h"
00018 #include "llvm/Target/TargetSubtarget.h"
00019 
00020 #include <string>
00021 
00022 namespace llvm {
00023 class Module;
00024 
00025 class AlphaSubtarget : public TargetSubtarget {
00026 protected:
00027 
00028   bool HasCT;
00029 
00030   InstrItineraryData InstrItins;
00031 
00032 public:
00033   /// This constructor initializes the data members to match that
00034   /// of the specified module.
00035   ///
00036   AlphaSubtarget(const Module &M, const std::string &FS);
00037   
00038   /// ParseSubtargetFeatures - Parses features string setting specified 
00039   /// subtarget options.  Definition of function is auto generated by tblgen.
00040   void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU);
00041 
00042   bool hasCT() const { return HasCT; }
00043 };
00044 } // End llvm namespace
00045 
00046 #endif