LLVM API Documentation

SparcSubtarget.h

Go to the documentation of this file.
00001 //=====-- SparcSubtarget.h - Define Subtarget for the SPARC ----*- 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 SPARC specific subclass of TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef SPARC_SUBTARGET_H
00015 #define SPARC_SUBTARGET_H
00016 
00017 #include "llvm/Target/TargetSubtarget.h"
00018 #include <string>
00019 
00020 namespace llvm {
00021 
00022 class SparcSubtarget : public TargetSubtarget {
00023   bool IsV9;
00024   bool V8DeprecatedInsts;
00025   bool IsVIS;
00026 public:
00027   SparcSubtarget(const std::string &TT, const std::string &FS);
00028 
00029   bool isV9() const { return IsV9; }
00030   bool isVIS() const { return IsVIS; }
00031   bool useDeprecatedV8Instructions() const { return V8DeprecatedInsts; }
00032   
00033   /// ParseSubtargetFeatures - Parses features string setting specified 
00034   /// subtarget options.  Definition of function is auto generated by tblgen.
00035   std::string ParseSubtargetFeatures(const std::string &FS,
00036                                      const std::string &CPU);
00037 
00038 };
00039 
00040 } // end namespace llvm
00041 
00042 #endif