LLVM API Documentation

XCoreSubtarget.h

Go to the documentation of this file.
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 TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef XCORESUBTARGET_H
00015 #define XCORESUBTARGET_H
00016 
00017 #include "llvm/Target/TargetSubtarget.h"
00018 #include "llvm/Target/TargetMachine.h"
00019 
00020 #include <string>
00021 
00022 namespace llvm {
00023 
00024 class XCoreSubtarget : public TargetSubtarget {
00025   bool IsXS1A;
00026   bool IsXS1B;
00027 
00028 public:
00029   /// This constructor initializes the data members to match that
00030   /// of the specified triple.
00031   ///
00032   XCoreSubtarget(const std::string &TT, const std::string &FS);
00033 
00034   bool isXS1A() const { return IsXS1A; }
00035   bool isXS1B() const { return IsXS1B; }
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 } // End llvm namespace
00043 
00044 #endif