1 //===-- MipsMCTargetDesc.h - Mips Target Descriptions -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides Mips specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCTARGETDESC_H
17 #include "llvm/Support/DataTypes.h"
28 class MCSubtargetInfo;
29 class MCTargetOptions;
34 class raw_pwrite_stream;
36 Target &getTheMipsTarget();
37 Target &getTheMipselTarget();
38 Target &getTheMips64Target();
39 Target &getTheMips64elTarget();
41 MCCodeEmitter *createMipsMCCodeEmitterEB(const MCInstrInfo &MCII,
42 const MCRegisterInfo &MRI,
44 MCCodeEmitter *createMipsMCCodeEmitterEL(const MCInstrInfo &MCII,
45 const MCRegisterInfo &MRI,
48 MCAsmBackend *createMipsAsmBackend(const Target &T, const MCSubtargetInfo &STI,
49 const MCRegisterInfo &MRI,
50 const MCTargetOptions &Options);
52 std::unique_ptr<MCObjectWriter>
53 createMipsELFObjectWriter(raw_pwrite_stream &OS, const Triple &TT, bool IsN32);
56 StringRef selectMipsCPU(const Triple &TT, StringRef CPU);
59 } // End llvm namespace
61 // Defines symbolic names for Mips registers. This defines a mapping from
62 // register name to register number.
63 #define GET_REGINFO_ENUM
64 #include "MipsGenRegisterInfo.inc"
66 // Defines symbolic names for the Mips instructions.
67 #define GET_INSTRINFO_ENUM
68 #include "MipsGenInstrInfo.inc"
70 #define GET_SUBTARGETINFO_ENUM
71 #include "MipsGenSubtargetInfo.inc"