LLVM API Documentation
00001 //====-- MSP430Subtarget.h - Define Subtarget for the MSP430 ---*- 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 MSP430 specific subclass of TargetSubtarget. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_TARGET_MSP430_SUBTARGET_H 00015 #define LLVM_TARGET_MSP430_SUBTARGET_H 00016 00017 #include "llvm/Target/TargetSubtarget.h" 00018 00019 #include <string> 00020 00021 namespace llvm { 00022 00023 class MSP430Subtarget : public TargetSubtarget { 00024 bool ExtendedInsts; 00025 public: 00026 /// This constructor initializes the data members to match that 00027 /// of the specified triple. 00028 /// 00029 MSP430Subtarget(const std::string &TT, const std::string &FS); 00030 00031 /// ParseSubtargetFeatures - Parses features string setting specified 00032 /// subtarget options. Definition of function is auto generated by tblgen. 00033 std::string ParseSubtargetFeatures(const std::string &FS, 00034 const std::string &CPU); 00035 }; 00036 } // End llvm namespace 00037 00038 #endif // LLVM_TARGET_MSP430_SUBTARGET_H