Add big endian mips support. Based on a patch by Jack Carter.
[oota-llvm.git] / lib / Target / Mips / MCTargetDesc / MipsMCTargetDesc.h
1 //===-- MipsMCTargetDesc.h - Mips Target Descriptions -----------*- 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 provides Mips specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef MIPSMCTARGETDESC_H
15 #define MIPSMCTARGETDESC_H
16
17 #include "llvm/Support/DataTypes.h"
18
19 namespace llvm {
20 class MCAsmBackend;
21 class MCCodeEmitter;
22 class MCContext;
23 class MCInstrInfo;
24 class MCObjectWriter;
25 class MCSubtargetInfo;
26 class StringRef;
27 class Target;
28 class raw_ostream;
29
30 extern Target TheMipsTarget;
31 extern Target TheMipselTarget;
32 extern Target TheMips64Target;
33 extern Target TheMips64elTarget;
34
35 MCCodeEmitter *createMipsMCCodeEmitter(const MCInstrInfo &MCII,
36                                        const MCSubtargetInfo &STI,
37                                        MCContext &Ctx);
38
39 MCAsmBackend *createMipsBEAsmBackend(const Target &T, StringRef TT);
40 MCAsmBackend *createMipsLEAsmBackend(const Target &T, StringRef TT);
41
42 MCObjectWriter *createMipsELFObjectWriter(raw_ostream &OS,
43                                           bool IsLittleEndian,
44                                           uint8_t OSABI);
45 } // End llvm namespace
46
47 // Defines symbolic names for Mips registers.  This defines a mapping from
48 // register name to register number.
49 #define GET_REGINFO_ENUM
50 #include "MipsGenRegisterInfo.inc"
51
52 // Defines symbolic names for the Mips instructions.
53 #define GET_INSTRINFO_ENUM
54 #include "MipsGenInstrInfo.inc"
55
56 #define GET_SUBTARGETINFO_ENUM
57 #include "MipsGenSubtargetInfo.inc"
58
59 #endif