LLVM API Documentation
00001 //===-- PowerPCTargetMachine.h - Define TargetMachine for PowerPC -*- C++ -*-=// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by the LLVM research group and is distributed under 00006 // the University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file declares the PowerPC-specific subclass of TargetMachine. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef POWERPC_TARGETMACHINE_H 00015 #define POWERPC_TARGETMACHINE_H 00016 00017 #include "PowerPCFrameInfo.h" 00018 #include "llvm/Target/TargetMachine.h" 00019 #include "llvm/PassManager.h" 00020 00021 namespace llvm { 00022 00023 class GlobalValue; 00024 class IntrinsicLowering; 00025 00026 class PowerPCTargetMachine : public TargetMachine { 00027 PowerPCFrameInfo FrameInfo; 00028 00029 protected: 00030 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL, 00031 const TargetData &TD, const PowerPCFrameInfo &TFI); 00032 public: 00033 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } 00034 00035 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out); 00036 }; 00037 00038 } // end namespace llvm 00039 00040 #endif