1 //===-- MSP430MCTargetDesc.h - MSP430 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 MSP430 specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
15 #define LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H
17 #include "llvm/Support/DataTypes.h"
25 class MCSubtargetInfo;
28 class MCTargetOptions;
29 class MCObjectTargetWriter;
31 class MCTargetStreamer;
33 Target &getTheMSP430Target();
35 /// Creates a machine code emitter for MSP430.
36 MCCodeEmitter *createMSP430MCCodeEmitter(const MCInstrInfo &MCII,
37 const MCRegisterInfo &MRI,
40 MCAsmBackend *createMSP430MCAsmBackend(const Target &T,
41 const MCSubtargetInfo &STI,
42 const MCRegisterInfo &MRI,
43 const MCTargetOptions &Options);
46 createMSP430ObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI);
48 std::unique_ptr<MCObjectTargetWriter>
49 createMSP430ELFObjectWriter(uint8_t OSABI);
51 } // End llvm namespace
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"
58 // Defines symbolic names for the MSP430 instructions.
59 #define GET_INSTRINFO_ENUM
60 #include "MSP430GenInstrInfo.inc"
62 #define GET_SUBTARGETINFO_ENUM
63 #include "MSP430GenSubtargetInfo.inc"