1 //===-- MSP430MCTargetDesc.h - MSP430 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 MSP430 specific target descriptions.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
14 #define LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
16 #include "llvm/Support/DataTypes.h"
24 class MCSubtargetInfo
;
27 class MCTargetOptions
;
28 class MCObjectTargetWriter
;
30 class MCTargetStreamer
;
32 Target
&getTheMSP430Target();
34 /// Creates a machine code emitter for MSP430.
35 MCCodeEmitter
*createMSP430MCCodeEmitter(const MCInstrInfo
&MCII
,
36 const MCRegisterInfo
&MRI
,
39 MCAsmBackend
*createMSP430MCAsmBackend(const Target
&T
,
40 const MCSubtargetInfo
&STI
,
41 const MCRegisterInfo
&MRI
,
42 const MCTargetOptions
&Options
);
45 createMSP430ObjectTargetStreamer(MCStreamer
&S
, const MCSubtargetInfo
&STI
);
47 std::unique_ptr
<MCObjectTargetWriter
>
48 createMSP430ELFObjectWriter(uint8_t OSABI
);
50 } // End llvm namespace
52 // Defines symbolic names for MSP430 registers.
53 // This defines a mapping from register name to register number.
54 #define GET_REGINFO_ENUM
55 #include "MSP430GenRegisterInfo.inc"
57 // Defines symbolic names for the MSP430 instructions.
58 #define GET_INSTRINFO_ENUM
59 #include "MSP430GenInstrInfo.inc"
61 #define GET_SUBTARGETINFO_ENUM
62 #include "MSP430GenSubtargetInfo.inc"