LLVM API Documentation
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 00024 class AlphaSubtarget : public TargetSubtarget { 00025 protected: 00026 00027 bool HasCT; 00028 00029 InstrItineraryData InstrItins; 00030 00031 public: 00032 /// This constructor initializes the data members to match that 00033 /// of the specified triple. 00034 /// 00035 AlphaSubtarget(const std::string &TT, const std::string &FS); 00036 00037 /// ParseSubtargetFeatures - Parses features string setting specified 00038 /// subtarget options. Definition of function is auto generated by tblgen. 00039 std::string ParseSubtargetFeatures(const std::string &FS, 00040 const std::string &CPU); 00041 00042 bool hasCT() const { return HasCT; } 00043 }; 00044 } // End llvm namespace 00045 00046 #endif