LLVM 24.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"
19
20#include <memory>
21
22namespace llvm {
23class MCAsmBackend;
24class MCCodeEmitter;
25class MCContext;
26class MCInstrInfo;
28class MCRegisterInfo;
29class MCSubtargetInfo;
30class MCTargetOptions;
31class Target;
32
34 MCContext &Ctx);
36 const MCRegisterInfo &MRI,
38std::unique_ptr<MCObjectTargetWriter>
39createSparcELFObjectWriter(bool Is64Bit, bool IsV8Plus, uint8_t OSABI);
40
41// Defines symbolic names for Sparc v9 ASI tag names.
42namespace SparcASITag {
48
49#define GET_ASITagsList_DECL
50#include "SparcGenSearchableTables.inc"
51} // end namespace SparcASITag
52
53// Defines symbolic names for Sparc v9 prefetch tag names.
54namespace SparcPrefetchTag {
59
60#define GET_PrefetchTagsList_DECL
61#include "SparcGenSearchableTables.inc"
62} // end namespace SparcPrefetchTag
63} // End llvm namespace
64
65// Defines symbolic names for Sparc registers. This defines a mapping from
66// register name to register number.
67//
68#define GET_REGINFO_ENUM
69#include "SparcGenRegisterInfo.inc"
70
71// Defines symbolic names for the Sparc instructions.
72//
73#define GET_INSTRINFO_ENUM
74#define GET_INSTRINFO_MC_HELPER_DECLS
75#include "SparcGenInstrInfo.inc"
76
77#define GET_SUBTARGETINFO_ENUM
78#include "SparcGenSubtargetInfo.inc"
79
80#endif
static LVOptions Options
Definition LVOptions.cpp:25
#define T
MachineRegisterInfo & MRI
Generic interface to target specific assembler backends.
MCCodeEmitter - Generic instruction encoding interface.
Context object for machine code objects.
Definition MCContext.h:84
Interface to description of machine instruction set.
Definition MCInstrInfo.h:27
Base class for classes that define behaviour that is specific to both the target and the object forma...
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Generic base class for all target subtargets.
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
std::unique_ptr< MCObjectTargetWriter > createSparcELFObjectWriter(bool Is64Bit, bool IsV8Plus, uint8_t OSABI)
MCAsmBackend * createSparcAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
MCCodeEmitter * createSparcMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
StringTable::Offset AltName