Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 1 | //===-- IA64TargetMachine.h - Define TargetMachine for IA64 ---*- C++ -*---===// |
Misha Brukman | 89b8c8d | 2005-04-21 23:13:11 +0000 | [diff] [blame] | 2 | // |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by Duraid Madina and is distributed under the |
| 6 | // University of Illinois Open Source License. See LICENSE.TXT for details. |
Misha Brukman | 89b8c8d | 2005-04-21 23:13:11 +0000 | [diff] [blame] | 7 | // |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
Misha Brukman | 89b8c8d | 2005-04-21 23:13:11 +0000 | [diff] [blame] | 9 | // |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 10 | // This file declares the IA64 specific subclass of TargetMachine. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef IA64TARGETMACHINE_H |
| 15 | #define IA64TARGETMACHINE_H |
| 16 | |
| 17 | #include "llvm/Target/TargetMachine.h" |
| 18 | #include "llvm/Target/TargetFrameInfo.h" |
| 19 | #include "llvm/PassManager.h" |
| 20 | #include "IA64InstrInfo.h" |
Evan Cheng | 2dd2c65 | 2006-03-13 23:20:37 +0000 | [diff] [blame^] | 21 | #include "IA64ISelLowering.h" |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 22 | |
| 23 | namespace llvm { |
| 24 | class IntrinsicLowering; |
| 25 | |
| 26 | class IA64TargetMachine : public TargetMachine { |
Evan Cheng | 2dd2c65 | 2006-03-13 23:20:37 +0000 | [diff] [blame^] | 27 | IA64InstrInfo InstrInfo; |
| 28 | TargetFrameInfo FrameInfo; |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 29 | //IA64JITInfo JITInfo; |
Evan Cheng | 2dd2c65 | 2006-03-13 23:20:37 +0000 | [diff] [blame^] | 30 | IA64TargetLowering TLInfo; |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 31 | public: |
Jim Laskey | 19058c3 | 2005-09-01 21:38:21 +0000 | [diff] [blame] | 32 | IA64TargetMachine(const Module &M, IntrinsicLowering *IL, |
| 33 | const std::string &FS); |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 34 | |
Evan Cheng | 2dd2c65 | 2006-03-13 23:20:37 +0000 | [diff] [blame^] | 35 | virtual const IA64InstrInfo *getInstrInfo() const { return &InstrInfo; } |
| 36 | virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } |
| 37 | virtual IA64TargetLowering *getTargetLowering() { return &TLInfo; } |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 38 | virtual const MRegisterInfo *getRegisterInfo() const { |
| 39 | return &InstrInfo.getRegisterInfo(); |
| 40 | } |
| 41 | |
Chris Lattner | f11f48b | 2005-06-25 02:48:37 +0000 | [diff] [blame] | 42 | virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out, |
Chris Lattner | b28f214 | 2005-11-08 02:11:51 +0000 | [diff] [blame] | 43 | CodeGenFileType FileType, bool Fast); |
Duraid Madina | 91ed0a1 | 2005-03-17 18:17:03 +0000 | [diff] [blame] | 44 | |
| 45 | static unsigned getModuleMatchQuality(const Module &M); |
| 46 | static unsigned compileTimeMatchQuality(void); |
| 47 | |
| 48 | }; |
| 49 | } // End llvm namespace |
| 50 | |
| 51 | #endif |
| 52 | |
| 53 | |