Path: blob/main/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCTargetDesc.h
35294 views
//===-- MSP430MCTargetDesc.h - MSP430 Target Descriptions -------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file provides MSP430 specific target descriptions.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H13#define LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430MCTARGETDESC_H1415#include "llvm/Support/DataTypes.h"16#include <memory>1718namespace llvm {19class Target;20class MCAsmBackend;21class MCCodeEmitter;22class MCInstrInfo;23class MCSubtargetInfo;24class MCRegisterInfo;25class MCContext;26class MCTargetOptions;27class MCObjectTargetWriter;28class MCStreamer;29class MCTargetStreamer;3031/// Creates a machine code emitter for MSP430.32MCCodeEmitter *createMSP430MCCodeEmitter(const MCInstrInfo &MCII,33MCContext &Ctx);3435MCAsmBackend *createMSP430MCAsmBackend(const Target &T,36const MCSubtargetInfo &STI,37const MCRegisterInfo &MRI,38const MCTargetOptions &Options);3940MCTargetStreamer *41createMSP430ObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI);4243std::unique_ptr<MCObjectTargetWriter>44createMSP430ELFObjectWriter(uint8_t OSABI);4546} // End llvm namespace4748// Defines symbolic names for MSP430 registers.49// This defines a mapping from register name to register number.50#define GET_REGINFO_ENUM51#include "MSP430GenRegisterInfo.inc"5253// Defines symbolic names for the MSP430 instructions.54#define GET_INSTRINFO_ENUM55#define GET_INSTRINFO_MC_HELPER_DECLS56#include "MSP430GenInstrInfo.inc"5758#define GET_SUBTARGETINFO_ENUM59#include "MSP430GenSubtargetInfo.inc"6061#endif626364