LLVM API Documentation

SystemZSubtarget.h

Go to the documentation of this file.
00001 //==-- SystemZSubtarget.h - Define Subtarget for the SystemZ ---*- 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 SystemZ specific subclass of TargetSubtarget.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef LLVM_TARGET_SystemZ_SUBTARGET_H
00015 #define LLVM_TARGET_SystemZ_SUBTARGET_H
00016 
00017 #include "llvm/Target/TargetSubtarget.h"
00018 
00019 #include <string>
00020 
00021 namespace llvm {
00022 class GlobalValue;
00023 class TargetMachine;
00024 
00025 class SystemZSubtarget : public TargetSubtarget {
00026   bool HasZ10Insts;
00027 public:
00028   /// This constructor initializes the data members to match that
00029   /// of the specified triple.
00030   ///
00031   SystemZSubtarget(const std::string &TT, const std::string &FS);
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   bool isZ10() const { return HasZ10Insts; }
00039 
00040   bool GVRequiresExtraLoad(const GlobalValue* GV, const TargetMachine& TM,
00041                            bool isDirectCall) const;
00042 };
00043 } // End llvm namespace
00044 
00045 #endif  // LLVM_TARGET_SystemZ_SUBTARGET_H