Put out* into the allocation order, allowing the register allocator to
[oota-llvm.git] / lib / Target / IA64 / IA64TargetMachine.h
1 //===-- IA64TargetMachine.h - Define TargetMachine for IA64 ---*- C++ -*---===//
2 // 
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.
7 // 
8 //===----------------------------------------------------------------------===//
9 // 
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"
21
22 namespace llvm {
23 class IntrinsicLowering;
24
25 class IA64TargetMachine : public TargetMachine {
26   IA64InstrInfo    InstrInfo;
27   TargetFrameInfo FrameInfo;
28   //IA64JITInfo      JITInfo;
29 public:
30   IA64TargetMachine(const Module &M, IntrinsicLowering *IL);
31
32   virtual const IA64InstrInfo     *getInstrInfo() const { return &InstrInfo; }
33   virtual const TargetFrameInfo  *getFrameInfo() const { return &FrameInfo; }
34   virtual const MRegisterInfo    *getRegisterInfo() const {
35     return &InstrInfo.getRegisterInfo();
36   }
37
38   virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
39
40   static unsigned getModuleMatchQuality(const Module &M);
41   static unsigned compileTimeMatchQuality(void);
42
43 };
44 } // End llvm namespace
45
46 #endif
47
48