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 | |
Rafael Espindola | 1dc45d8 | 2011-12-22 03:03:17 +0000 | [diff] [blame^] | 17 | #include "llvm/Support/DataTypes.h" |
| 18 | |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 19 | namespace llvm { |
Akira Hatanaka | 44220ca | 2011-09-30 21:23:45 +0000 | [diff] [blame] | 20 | class MCAsmBackend; |
Akira Hatanaka | 750ecec | 2011-09-30 20:40:03 +0000 | [diff] [blame] | 21 | class MCCodeEmitter; |
| 22 | class MCContext; |
Bruno Cardoso Lopes | c85e3ff | 2011-11-11 22:58:42 +0000 | [diff] [blame] | 23 | class MCInstrInfo; |
| 24 | class MCObjectWriter; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 25 | class MCSubtargetInfo; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 26 | class StringRef; |
Akira Hatanaka | 750ecec | 2011-09-30 20:40:03 +0000 | [diff] [blame] | 27 | class Target; |
Bruno Cardoso Lopes | c85e3ff | 2011-11-11 22:58:42 +0000 | [diff] [blame] | 28 | class raw_ostream; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 29 | |
| 30 | extern Target TheMipsTarget; |
| 31 | extern Target TheMipselTarget; |
Akira Hatanaka | 3d673cc | 2011-09-21 03:00:58 +0000 | [diff] [blame] | 32 | extern Target TheMips64Target; |
| 33 | extern Target TheMips64elTarget; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 34 | |
Akira Hatanaka | 750ecec | 2011-09-30 20:40:03 +0000 | [diff] [blame] | 35 | MCCodeEmitter *createMipsMCCodeEmitter(const MCInstrInfo &MCII, |
| 36 | const MCSubtargetInfo &STI, |
| 37 | MCContext &Ctx); |
Akira Hatanaka | 44220ca | 2011-09-30 21:23:45 +0000 | [diff] [blame] | 38 | |
| 39 | MCAsmBackend *createMipsAsmBackend(const Target &T, StringRef TT); |
Bruno Cardoso Lopes | c85e3ff | 2011-11-11 22:58:42 +0000 | [diff] [blame] | 40 | |
Rafael Espindola | 1dc45d8 | 2011-12-22 03:03:17 +0000 | [diff] [blame^] | 41 | MCObjectWriter *createMipsELFObjectWriter(raw_ostream &OS, |
| 42 | bool IsLittleEndian, |
| 43 | uint8_t OSABI); |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 44 | } // End llvm namespace |
| 45 | |
| 46 | // Defines symbolic names for Mips registers. This defines a mapping from |
| 47 | // register name to register number. |
| 48 | #define GET_REGINFO_ENUM |
| 49 | #include "MipsGenRegisterInfo.inc" |
| 50 | |
| 51 | // Defines symbolic names for the Mips instructions. |
| 52 | #define GET_INSTRINFO_ENUM |
| 53 | #include "MipsGenInstrInfo.inc" |
| 54 | |
| 55 | #define GET_SUBTARGETINFO_ENUM |
| 56 | #include "MipsGenSubtargetInfo.inc" |
| 57 | |
| 58 | #endif |