xref: /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h (revision e1c4c8dd8d2d10b6104f06856a77bd5b4813a801)
1 //===-- MSP430MCTargetDesc.h - MSP430 Target Descriptions -------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file provides MSP430 specific target descriptions.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
14 #define LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
15 
16 #include "llvm/Support/DataTypes.h"
17 #include <memory>
18 
19 namespace llvm {
20 class Target;
21 class MCAsmBackend;
22 class MCCodeEmitter;
23 class MCInstrInfo;
24 class MCSubtargetInfo;
25 class MCRegisterInfo;
26 class MCContext;
27 class MCTargetOptions;
28 class MCObjectTargetWriter;
29 class MCStreamer;
30 class MCTargetStreamer;
31 
32 /// Creates a machine code emitter for MSP430.
33 MCCodeEmitter *createMSP430MCCodeEmitter(const MCInstrInfo &MCII,
34                                          MCContext &Ctx);
35 
36 MCAsmBackend *createMSP430MCAsmBackend(const Target &T,
37                                        const MCSubtargetInfo &STI,
38                                        const MCRegisterInfo &MRI,
39                                        const MCTargetOptions &Options);
40 
41 MCTargetStreamer *
42 createMSP430ObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI);
43 
44 std::unique_ptr<MCObjectTargetWriter>
45 createMSP430ELFObjectWriter(uint8_t OSABI);
46 
47 } // End llvm namespace
48 
49 // Defines symbolic names for MSP430 registers.
50 // This defines a mapping from register name to register number.
51 #define GET_REGINFO_ENUM
52 #include "MSP430GenRegisterInfo.inc"
53 
54 // Defines symbolic names for the MSP430 instructions.
55 #define GET_INSTRINFO_ENUM
56 #define GET_INSTRINFO_MC_HELPER_DECLS
57 #include "MSP430GenInstrInfo.inc"
58 
59 #define GET_SUBTARGETINFO_ENUM
60 #include "MSP430GenSubtargetInfo.inc"
61 
62 #endif
63