1 //===-- MipsMCTargetDesc.h - Mips Target Descriptions -----------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file provides Mips specific target descriptions.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCTARGETDESC_H
14 #define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCTARGETDESC_H
16 #include "llvm/Support/DataTypes.h"
25 class MCObjectTargetWriter
;
27 class MCSubtargetInfo
;
28 class MCTargetOptions
;
33 class raw_pwrite_stream
;
35 Target
&getTheMipsTarget();
36 Target
&getTheMipselTarget();
37 Target
&getTheMips64Target();
38 Target
&getTheMips64elTarget();
40 MCCodeEmitter
*createMipsMCCodeEmitterEB(const MCInstrInfo
&MCII
,
41 const MCRegisterInfo
&MRI
,
43 MCCodeEmitter
*createMipsMCCodeEmitterEL(const MCInstrInfo
&MCII
,
44 const MCRegisterInfo
&MRI
,
47 MCAsmBackend
*createMipsAsmBackend(const Target
&T
, const MCSubtargetInfo
&STI
,
48 const MCRegisterInfo
&MRI
,
49 const MCTargetOptions
&Options
);
51 std::unique_ptr
<MCObjectTargetWriter
>
52 createMipsELFObjectWriter(const Triple
&TT
, bool IsN32
);
55 StringRef
selectMipsCPU(const Triple
&TT
, StringRef CPU
);
58 } // End llvm namespace
60 // Defines symbolic names for Mips registers. This defines a mapping from
61 // register name to register number.
62 #define GET_REGINFO_ENUM
63 #include "MipsGenRegisterInfo.inc"
65 // Defines symbolic names for the Mips instructions.
66 #define GET_INSTRINFO_ENUM
67 #include "MipsGenInstrInfo.inc"
69 #define GET_SUBTARGETINFO_ENUM
70 #include "MipsGenSubtargetInfo.inc"