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