Assert if InflightSet is not cleared after instruction selecting a BB.
[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/TargetData.h"
19 #include "llvm/Target/TargetFrameInfo.h"
20 #include "llvm/PassManager.h"
21 #include "IA64InstrInfo.h"
22 #include "IA64ISelLowering.h"
23
24 namespace llvm {
25
26 class IA64TargetMachine : public TargetMachine {
27   const TargetData DataLayout;       // Calculates type size & alignment
28   IA64InstrInfo      InstrInfo;
29   TargetFrameInfo    FrameInfo;
30   //IA64JITInfo      JITInfo;
31   IA64TargetLowering TLInfo;
32 public:
33   IA64TargetMachine(const Module &M, const std::string &FS);
34
35   virtual const IA64InstrInfo      *getInstrInfo() const { return &InstrInfo; }
36   virtual const TargetFrameInfo    *getFrameInfo() const { return &FrameInfo; }
37   virtual       IA64TargetLowering *getTargetLowering() const { 
38     return const_cast<IA64TargetLowering*>(&TLInfo);
39   }
40   virtual const MRegisterInfo    *getRegisterInfo() const {
41     return &InstrInfo.getRegisterInfo();
42   }
43   virtual const TargetData       *getTargetData() const { return &DataLayout; }
44
45   virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
46                                    CodeGenFileType FileType, bool Fast);
47
48   static unsigned getModuleMatchQuality(const Module &M);
49   static unsigned compileTimeMatchQuality(void);
50
51 };
52 } // End llvm namespace
53
54 #endif
55
56