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