LLVM 19.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
16#include "llvm/ADT/StringRef.h"
18
19#include <memory>
20
21namespace llvm {
22class MCAsmBackend;
23class MCCodeEmitter;
24class MCContext;
25class MCInstrInfo;
26class MCObjectTargetWriter;
27class MCRegisterInfo;
28class MCSubtargetInfo;
29class MCTargetOptions;
30class Target;
31
32MCCodeEmitter *createSparcMCCodeEmitter(const MCInstrInfo &MCII,
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
40// Defines symbolic names for Sparc v9 ASI tag names.
41namespace SparcASITag {
42struct ASITag {
43 const char *Name;
44 const char *AltName;
45 unsigned Encoding;
46};
47
48#define GET_ASITagsList_DECL
49#include "SparcGenSearchableTables.inc"
50} // end namespace SparcASITag
51} // End llvm namespace
52
53// Defines symbolic names for Sparc registers. This defines a mapping from
54// register name to register number.
55//
56#define GET_REGINFO_ENUM
57#include "SparcGenRegisterInfo.inc"
58
59// Defines symbolic names for the Sparc instructions.
60//
61#define GET_INSTRINFO_ENUM
62#define GET_INSTRINFO_MC_HELPER_DECLS
63#include "SparcGenInstrInfo.inc"
64
65#define GET_SUBTARGETINFO_ENUM
66#include "SparcGenSubtargetInfo.inc"
67
68#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)