1 //===-- PPC32TargetMachine.h - PowerPC/Darwin TargetMachine ---*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the PowerPC/Darwin specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef POWERPC_DARWIN_TARGETMACHINE_H
15 #define POWERPC_DARWIN_TARGETMACHINE_H
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetFrameInfo.h"
19 #include "llvm/PassManager.h"
20 #include "PowerPCTargetMachine.h"
24 class IntrinsicLowering;
26 class PPC32TargetMachine : public PowerPCTargetMachine {
28 PPC32TargetMachine(const Module &M, IntrinsicLowering *IL);
30 /// addPassesToEmitMachineCode - Add passes to the specified pass manager to
31 /// get machine code emitted. This uses a MachineCodeEmitter object to handle
32 /// actually outputting the machine code and resolving things like the address
33 /// of functions. This method should returns true if machine code emission is
36 virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
37 MachineCodeEmitter &MCE);
39 static unsigned getModuleMatchQuality(const Module &M);
42 } // end namespace llvm