Remove unused member variable introduced in r165665.
[oota-llvm.git] / lib / Target / Mips / MipsTargetMachine.h
1 //===-- MipsTargetMachine.h - Define TargetMachine for Mips -----*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares the Mips specific subclass of TargetMachine.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef MIPSTARGETMACHINE_H
15 #define MIPSTARGETMACHINE_H
16
17 #include "MipsFrameLowering.h"
18 #include "MipsInstrInfo.h"
19 #include "MipsISelLowering.h"
20 #include "MipsJITInfo.h"
21 #include "MipsSelectionDAGInfo.h"
22 #include "MipsSubtarget.h"
23 #include "MipsELFWriterInfo.h"
24 #include "llvm/Target/TargetMachine.h"
25 #include "llvm/DataLayout.h"
26 #include "llvm/Target/TargetFrameLowering.h"
27 #include "llvm/Target/TargetTransformImpl.h"
28
29 namespace llvm {
30 class formatted_raw_ostream;
31 class MipsRegisterInfo;
32
33 class MipsTargetMachine : public LLVMTargetMachine {
34   MipsSubtarget       Subtarget;
35   const DataLayout    DL; // Calculates type size & alignment
36   const MipsInstrInfo *InstrInfo;
37   const MipsFrameLowering *FrameLowering;
38   MipsTargetLowering  TLInfo;
39   MipsSelectionDAGInfo TSInfo;
40   MipsJITInfo JITInfo;
41   MipsELFWriterInfo   ELFWriterInfo;
42   ScalarTargetTransformImpl STTI;
43
44 public:
45   MipsTargetMachine(const Target &T, StringRef TT,
46                     StringRef CPU, StringRef FS, const TargetOptions &Options,
47                     Reloc::Model RM, CodeModel::Model CM,
48                     CodeGenOpt::Level OL,
49                     bool isLittle);
50
51   virtual ~MipsTargetMachine() { delete InstrInfo; }
52
53   virtual const MipsInstrInfo *getInstrInfo() const
54   { return InstrInfo; }
55   virtual const TargetFrameLowering *getFrameLowering() const
56   { return FrameLowering; }
57   virtual const MipsSubtarget *getSubtargetImpl() const
58   { return &Subtarget; }
59   virtual const DataLayout *getDataLayout()    const
60   { return &DL;}
61   virtual MipsJITInfo *getJITInfo()
62   { return &JITInfo; }
63
64   virtual const MipsRegisterInfo *getRegisterInfo()  const {
65     return &InstrInfo->getRegisterInfo();
66   }
67
68   virtual const MipsTargetLowering *getTargetLowering() const {
69     return &TLInfo;
70   }
71
72   virtual const MipsSelectionDAGInfo* getSelectionDAGInfo() const {
73     return &TSInfo;
74   }
75
76   virtual const MipsELFWriterInfo *getELFWriterInfo() const {
77     return &ELFWriterInfo;
78   }
79
80   // Pass Pipeline Configuration
81   virtual TargetPassConfig *createPassConfig(PassManagerBase &PM);
82   virtual bool addCodeEmitter(PassManagerBase &PM, JITCodeEmitter &JCE);
83 };
84
85 /// MipsebTargetMachine - Mips32/64 big endian target machine.
86 ///
87 class MipsebTargetMachine : public MipsTargetMachine {
88   virtual void anchor();
89 public:
90   MipsebTargetMachine(const Target &T, StringRef TT,
91                       StringRef CPU, StringRef FS, const TargetOptions &Options,
92                       Reloc::Model RM, CodeModel::Model CM,
93                       CodeGenOpt::Level OL);
94 };
95
96 /// MipselTargetMachine - Mips32/64 little endian target machine.
97 ///
98 class MipselTargetMachine : public MipsTargetMachine {
99   virtual void anchor();
100 public:
101   MipselTargetMachine(const Target &T, StringRef TT,
102                       StringRef CPU, StringRef FS, const TargetOptions &Options,
103                       Reloc::Model RM, CodeModel::Model CM,
104                       CodeGenOpt::Level OL);
105 };
106
107 } // End llvm namespace
108
109 #endif