LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PPC32TargetMachine.h

Go to the documentation of this file.
00001 //===-- PPC32TargetMachine.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 POWERPC32_TARGETMACHINE_H
00015 #define POWERPC32_TARGETMACHINE_H
00016 
00017 #include "PowerPCTargetMachine.h"
00018 #include "PPC32JITInfo.h"
00019 #include "PPC32InstrInfo.h"
00020 #include "llvm/PassManager.h"
00021 
00022 namespace llvm {
00023 
00024 class IntrinsicLowering;
00025 
00026 class PPC32TargetMachine : public PowerPCTargetMachine {
00027   PPC32InstrInfo InstrInfo;
00028   PPC32JITInfo JITInfo;
00029 
00030 public:
00031   PPC32TargetMachine(const Module &M, IntrinsicLowering *IL);
00032   virtual const PPC32InstrInfo   *getInstrInfo() const { return &InstrInfo; }
00033   virtual const MRegisterInfo *getRegisterInfo() const {
00034     return &InstrInfo.getRegisterInfo();
00035   }
00036 
00037   virtual TargetJITInfo *getJITInfo() {
00038     return &JITInfo;
00039   }
00040 
00041   static unsigned getJITMatchQuality();
00042 
00043   static unsigned getModuleMatchQuality(const Module &M);
00044 
00045   bool addPassesToEmitMachineCode(FunctionPassManager &PM,
00046                                   MachineCodeEmitter &MCE);
00047 };
00048 
00049 } // end namespace llvm
00050 
00051 #endif