Breaking up the PowerPC target into 32- and 64-bit subparts, Part III: the rest.
[oota-llvm.git] / lib / Target / PowerPC / PowerPCTargetMachine.h
1 //===-- PowerPCTargetMachine.h - Define TargetMachine for PowerPC -*- C++ -*-=//
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 // 
10 // This file declares the PowerPC specific subclass of TargetMachine.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef POWERPC_TARGETMACHINE_H
15 #define POWERPC_TARGETMACHINE_H
16
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetFrameInfo.h"
19 #include "llvm/PassManager.h"
20 #include "PowerPCInstrInfo.h"
21 #include "PowerPCJITInfo.h"
22 #include <set>
23
24 namespace llvm {
25
26 class GlobalValue;
27 class IntrinsicLowering;
28
29 class PowerPCTargetMachine : public TargetMachine {
30   PowerPCInstrInfo InstrInfo;
31   TargetFrameInfo FrameInfo;
32   PowerPCJITInfo JITInfo;
33
34 protected:
35   PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
36                        const TargetData &TD, const TargetFrameInfo &TFI,
37                        const PowerPCJITInfo &TJI);
38 public:
39   virtual const PowerPCInstrInfo *getInstrInfo() const { return &InstrInfo; }
40   virtual const TargetFrameInfo  *getFrameInfo() const { return &FrameInfo; }
41   virtual const MRegisterInfo *getRegisterInfo() const {
42     return &InstrInfo.getRegisterInfo();
43   }
44   virtual TargetJITInfo *getJITInfo() {
45     return &JITInfo;
46   }
47
48   static unsigned getJITMatchQuality();
49 };
50
51 } // end namespace llvm
52
53 #endif