LLVM 22.0.0git
MSP430MCTargetDesc.h
Go to the documentation of this file.
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
17#include <memory>
18
19namespace llvm {
20class Target;
21class MCAsmBackend;
22class MCCodeEmitter;
23class MCInstrInfo;
24class MCSubtargetInfo;
25class MCRegisterInfo;
26class MCContext;
27class MCTargetOptions;
29class MCStreamer;
31
32/// Creates a machine code emitter for MSP430.
34 MCContext &Ctx);
35
37 const MCSubtargetInfo &STI,
38 const MCRegisterInfo &MRI,
40
43
44std::unique_ptr<MCObjectTargetWriter>
45createMSP430ELFObjectWriter(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
unsigned const MachineRegisterInfo * MRI
static LVOptions Options
Definition LVOptions.cpp:25
#define T
Generic interface to target specific assembler backends.
MCCodeEmitter - Generic instruction encoding interface.
Context object for machine code objects.
Definition MCContext.h:83
Interface to description of machine instruction set.
Definition MCInstrInfo.h:27
Base class for classes that define behaviour that is specific to both the target and the object forma...
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Streaming machine code generation interface.
Definition MCStreamer.h:220
Generic base class for all target subtargets.
Target specific streamer interface.
Definition MCStreamer.h:93
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
MCTargetStreamer * createMSP430ObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
MCCodeEmitter * createMSP430MCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
Creates a machine code emitter for MSP430.
MCAsmBackend * createMSP430MCAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
std::unique_ptr< MCObjectTargetWriter > createMSP430ELFObjectWriter(uint8_t OSABI)