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