1//===-- SparcMCTargetDesc.h - Sparc 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 Sparc specific target descriptions. 10// 11//===----------------------------------------------------------------------===// 12 13#ifndef LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H 14#define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H 15 16#include "llvm/Support/DataTypes.h" 17 18#include <memory> 19 20namespace llvm { 21class MCAsmBackend; 22class MCCodeEmitter; 23class MCContext; 24class MCInstrInfo; 25class MCObjectTargetWriter; 26class MCRegisterInfo; 27class MCSubtargetInfo; 28class MCTargetOptions; 29class Target; 30 31MCCodeEmitter *createSparcMCCodeEmitter(const MCInstrInfo &MCII, 32 const MCRegisterInfo &MRI, 33 MCContext &Ctx); 34MCAsmBackend *createSparcAsmBackend(const Target &T, const MCSubtargetInfo &STI, 35 const MCRegisterInfo &MRI, 36 const MCTargetOptions &Options); 37std::unique_ptr<MCObjectTargetWriter> createSparcELFObjectWriter(bool Is64Bit, 38 uint8_t OSABI); 39} // End llvm namespace 40 41// Defines symbolic names for Sparc registers. This defines a mapping from 42// register name to register number. 43// 44#define GET_REGINFO_ENUM 45#include "SparcGenRegisterInfo.inc" 46 47// Defines symbolic names for the Sparc instructions. 48// 49#define GET_INSTRINFO_ENUM 50#include "SparcGenInstrInfo.inc" 51 52#define GET_SUBTARGETINFO_ENUM 53#include "SparcGenSubtargetInfo.inc" 54 55#endif 56