OLD | NEW |
1 //===-- Mips.h - Top-level interface for Mips representation ----*- C++ -*-===// | 1 //===-- Mips.h - Top-level interface for Mips representation ----*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file contains the entry points for global functions defined in | 10 // This file contains the entry points for global functions defined in |
11 // the LLVM Mips back-end. | 11 // the LLVM Mips back-end. |
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #ifndef TARGET_MIPS_H | 15 #ifndef TARGET_MIPS_H |
16 #define TARGET_MIPS_H | 16 #define TARGET_MIPS_H |
17 | 17 |
18 #include "MCTargetDesc/MipsMCTargetDesc.h" | 18 #include "MCTargetDesc/MipsMCTargetDesc.h" |
19 #include "llvm/Target/TargetMachine.h" | 19 #include "llvm/Target/TargetMachine.h" |
20 | 20 |
| 21 /* @LOCALMOD-START */ |
| 22 namespace llvm { |
| 23 |
| 24 namespace Mips { |
| 25 extern unsigned LoadStoreStackMaskReg; |
| 26 extern unsigned IndirectBranchMaskReg; |
| 27 } |
| 28 } // End llvm namespace |
| 29 /* @LOCALMOD-END */ |
| 30 |
21 namespace llvm { | 31 namespace llvm { |
22 class MipsTargetMachine; | 32 class MipsTargetMachine; |
23 class FunctionPass; | 33 class FunctionPass; |
24 class MachineCodeEmitter; | 34 class MachineCodeEmitter; |
25 class formatted_raw_ostream; | 35 class formatted_raw_ostream; |
26 | 36 |
27 FunctionPass *createMipsISelDag(MipsTargetMachine &TM); | 37 FunctionPass *createMipsISelDag(MipsTargetMachine &TM); |
28 FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM); | 38 FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM); |
29 FunctionPass *createMipsExpandPseudoPass(MipsTargetMachine &TM); | 39 FunctionPass *createMipsExpandPseudoPass(MipsTargetMachine &TM); |
30 FunctionPass *createMipsEmitGPRestorePass(MipsTargetMachine &TM); | 40 FunctionPass *createMipsEmitGPRestorePass(MipsTargetMachine &TM); |
31 | 41 |
32 FunctionPass *createMipsJITCodeEmitterPass(MipsTargetMachine &TM, | 42 FunctionPass *createMipsJITCodeEmitterPass(MipsTargetMachine &TM, |
33 JITCodeEmitter &JCE); | 43 JITCodeEmitter &JCE); |
34 | 44 |
| 45 /* @LOCALMOD-START */ |
| 46 FunctionPass *createMipsNaClRewritePass(); |
| 47 /* @LOCALMOD-END */ |
| 48 |
35 } // end namespace llvm; | 49 } // end namespace llvm; |
36 | 50 |
37 #endif | 51 #endif |
OLD | NEW |