Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 1 | //===-- PPC64TargetMachine.h - Define TargetMachine for PowerPC64 -*- C++ -*-=// |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 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. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 10 | // This file declares the PowerPC specific subclass of TargetMachine. |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 14 | #ifndef POWERPC64_TARGETMACHINE_H |
| 15 | #define POWERPC64_TARGETMACHINE_H |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 16 | |
| 17 | #include "PowerPCTargetMachine.h" |
Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 18 | #include "PPC64InstrInfo.h" |
| 19 | #include "llvm/PassManager.h" |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 20 | |
| 21 | namespace llvm { |
| 22 | |
Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 23 | class IntrinsicLowering; |
| 24 | |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 25 | class PPC64TargetMachine : public PowerPCTargetMachine { |
Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 26 | PPC64InstrInfo InstrInfo; |
| 27 | |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 28 | public: |
| 29 | PPC64TargetMachine(const Module &M, IntrinsicLowering *IL); |
Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 30 | virtual const PPC64InstrInfo *getInstrInfo() const { return &InstrInfo; } |
| 31 | virtual const MRegisterInfo *getRegisterInfo() const { |
| 32 | return &InstrInfo.getRegisterInfo(); |
| 33 | } |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 34 | |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 35 | static unsigned getModuleMatchQuality(const Module &M); |
Misha Brukman | adde699 | 2004-08-17 04:57:37 +0000 | [diff] [blame] | 36 | |
| 37 | bool addPassesToEmitMachineCode(FunctionPassManager &PM, |
| 38 | MachineCodeEmitter &MCE); |
Misha Brukman | c0f6420 | 2004-08-11 00:10:41 +0000 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | } // end namespace llvm |
| 42 | |
| 43 | #endif |