LLVM 17.0.0git
SparcMCTargetDesc.h
Go to the documentation of this file.
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
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 MCContext &Ctx);
33MCAsmBackend *createSparcAsmBackend(const Target &T, const MCSubtargetInfo &STI,
34 const MCRegisterInfo &MRI,
35 const MCTargetOptions &Options);
36std::unique_ptr<MCObjectTargetWriter> createSparcELFObjectWriter(bool Is64Bit,
37 uint8_t OSABI);
38} // End llvm namespace
39
40// Defines symbolic names for Sparc registers. This defines a mapping from
41// register name to register number.
42//
43#define GET_REGINFO_ENUM
44#include "SparcGenRegisterInfo.inc"
45
46// Defines symbolic names for the Sparc instructions.
47//
48#define GET_INSTRINFO_ENUM
49#define GET_INSTRINFO_MC_HELPER_DECLS
50#include "SparcGenInstrInfo.inc"
51
52#define GET_SUBTARGETINFO_ENUM
53#include "SparcGenSubtargetInfo.inc"
54
55#endif
unsigned const MachineRegisterInfo * MRI
static LVOptions Options
Definition: LVOptions.cpp:25
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
MCAsmBackend * createSparcAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
std::unique_ptr< MCObjectTargetWriter > createSparcELFObjectWriter(bool Is64Bit, uint8_t OSABI)
MCCodeEmitter * createSparcMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)