LLVM API Documentation

SystemZTargetMachine.h
Go to the documentation of this file.
00001 //==- SystemZTargetMachine.h - Define TargetMachine for 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 TargetMachine.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 
00015 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETMACHINE_H
00016 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZTARGETMACHINE_H
00017 
00018 #include "SystemZSubtarget.h"
00019 #include "llvm/Target/TargetMachine.h"
00020 
00021 namespace llvm {
00022 
00023 class TargetFrameLowering;
00024 
00025 class SystemZTargetMachine : public LLVMTargetMachine {
00026   SystemZSubtarget        Subtarget;
00027 
00028 public:
00029   SystemZTargetMachine(const Target &T, StringRef TT, StringRef CPU,
00030                        StringRef FS, const TargetOptions &Options,
00031                        Reloc::Model RM, CodeModel::Model CM,
00032                        CodeGenOpt::Level OL);
00033 
00034   // Override TargetMachine.
00035   const SystemZSubtarget *getSubtargetImpl() const override {
00036     return &Subtarget;
00037   }
00038   // Override LLVMTargetMachine
00039   TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
00040 };
00041 
00042 } // end namespace llvm
00043 
00044 #endif