James Molloy | 8c54533 | 2011-08-30 07:23:29 +0000 | [diff] [blame] | 1 | //===-- MipsMCTargetDesc.h - Mips Target Descriptions -----------*- C++ -*-===// |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 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 | // |
James Molloy | 8c54533 | 2011-08-30 07:23:29 +0000 | [diff] [blame] | 10 | // This file provides Mips specific target descriptions. |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
James Molloy | 8c54533 | 2011-08-30 07:23:29 +0000 | [diff] [blame] | 14 | #ifndef MIPSMCTARGETDESC_H |
| 15 | #define MIPSMCTARGETDESC_H |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 16 | |
| 17 | namespace llvm { |
Akira Hatanaka | 750ecec | 2011-09-30 20:40:03 +0000 | [diff] [blame^] | 18 | class MCInstrInfo; |
| 19 | class MCCodeEmitter; |
| 20 | class MCContext; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 21 | class MCSubtargetInfo; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 22 | class StringRef; |
Akira Hatanaka | 750ecec | 2011-09-30 20:40:03 +0000 | [diff] [blame^] | 23 | class Target; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 24 | |
| 25 | extern Target TheMipsTarget; |
| 26 | extern Target TheMipselTarget; |
Akira Hatanaka | 3d673cc | 2011-09-21 03:00:58 +0000 | [diff] [blame] | 27 | extern Target TheMips64Target; |
| 28 | extern Target TheMips64elTarget; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 29 | |
Akira Hatanaka | 750ecec | 2011-09-30 20:40:03 +0000 | [diff] [blame^] | 30 | MCCodeEmitter *createMipsMCCodeEmitter(const MCInstrInfo &MCII, |
| 31 | const MCSubtargetInfo &STI, |
| 32 | MCContext &Ctx); |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 33 | } // End llvm namespace |
| 34 | |
| 35 | // Defines symbolic names for Mips registers. This defines a mapping from |
| 36 | // register name to register number. |
| 37 | #define GET_REGINFO_ENUM |
| 38 | #include "MipsGenRegisterInfo.inc" |
| 39 | |
| 40 | // Defines symbolic names for the Mips instructions. |
| 41 | #define GET_INSTRINFO_ENUM |
| 42 | #include "MipsGenInstrInfo.inc" |
| 43 | |
| 44 | #define GET_SUBTARGETINFO_ENUM |
| 45 | #include "MipsGenSubtargetInfo.inc" |
| 46 | |
| 47 | #endif |