1 //===-- PPC64TargetMachine.h - Define TargetMachine for PowerPC64 -*- 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 specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef POWERPC64_TARGETMACHINE_H
15 #define POWERPC64_TARGETMACHINE_H
17 #include "PowerPCTargetMachine.h"
18 #include "PPC64InstrInfo.h"
19 #include "llvm/PassManager.h"
23 class IntrinsicLowering;
25 class PPC64TargetMachine : public PowerPCTargetMachine {
26 PPC64InstrInfo InstrInfo;
29 PPC64TargetMachine(const Module &M, IntrinsicLowering *IL);
30 virtual const PPC64InstrInfo *getInstrInfo() const { return &InstrInfo; }
31 virtual const MRegisterInfo *getRegisterInfo() const {
32 return &InstrInfo.getRegisterInfo();
35 static unsigned getModuleMatchQuality(const Module &M);
37 bool addPassesToEmitMachineCode(FunctionPassManager &PM,
38 MachineCodeEmitter &MCE);
41 } // end namespace llvm