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
52// Defines symbolic names for Sparc v9 prefetch tag names.
53namespace SparcPrefetchTag {
55 const char *Name;
56 unsigned Encoding;
57};
58
59#define GET_PrefetchTagsList_DECL
60#include "SparcGenSearchableTables.inc"
61} // end namespace SparcPrefetchTag
62} // End llvm namespace
63
64// Defines symbolic names for Sparc registers. This defines a mapping from
65// register name to register number.
66//
67#define GET_REGINFO_ENUM
68#include "SparcGenRegisterInfo.inc"
69
70// Defines symbolic names for the Sparc instructions.
71//
72#define GET_INSTRINFO_ENUM
73#define GET_INSTRINFO_MC_HELPER_DECLS
74#include "SparcGenInstrInfo.inc"
75
76#define GET_SUBTARGETINFO_ENUM
77#include "SparcGenSubtargetInfo.inc"
78
79#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)