LLVM API Documentation

PIC16Subtarget.h

Go to the documentation of this file.
00001 //=====-- PIC16Subtarget.h - Define Subtarget for the PIC16 ---*- 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 PIC16 specific subclass of TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef PIC16SUBTARGET_H
00015 #define PIC16SUBTARGET_H
00016 
00017 #include "llvm/Target/TargetSubtarget.h"
00018 
00019 #include <string>
00020 
00021 namespace llvm {
00022 
00023 class PIC16Subtarget : public TargetSubtarget {
00024 
00025   // IsCooper - Target ISA is Cooper.
00026   bool IsCooper;
00027 
00028 public:
00029   /// This constructor initializes the data members to match that
00030   /// of the specified triple.
00031   ///
00032   PIC16Subtarget(const std::string &TT, const std::string &FS, bool Cooper);
00033   
00034   /// isCooper - Returns true if the target ISA is Cooper.
00035   bool isCooper() const { return IsCooper; }
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  // PIC16SUBTARGET_H