LLVM 24.0.0git
PISAMCTargetDesc.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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/// \file
10/// This file declares the PISA MC target descriptions.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAMCTARGETDESC_H
15#define LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAMCTARGETDESC_H
16
17#include "llvm/MC/MCInstrDesc.h"
19#include <memory>
20
21namespace llvm {
22class MCAsmBackend;
23class MCCodeEmitter;
24class MCContext;
25class MCInstPrinter;
26class MCInstrInfo;
28class MCRegisterInfo;
29class MCStreamer;
30class MCSubtargetInfo;
31class MCTargetOptions;
33class Target;
35
36namespace PISA {
41} // namespace PISA
42
43MCTargetStreamer *createPISAAsmTargetStreamer(MCStreamer &S,
44 formatted_raw_ostream &OS,
45 MCInstPrinter *InstPrint);
46MCTargetStreamer *createPISAObjectTargetStreamer(MCStreamer &S,
47 const MCSubtargetInfo &STI);
48MCTargetStreamer *createPISANullTargetStreamer(MCStreamer &S);
49
50} // namespace llvm
51
52// Defines symbolic names for PISA registers. This defines a mapping from
53// register name to register number.
54#define GET_REGINFO_ENUM
55#include "PISAGenRegisterInfo.inc"
56
57// Defines symbolic names for the PISA instructions.
58#define GET_INSTRINFO_ENUM
59#define GET_INSTRINFO_MC_HELPER_DECLS
60#include "PISAGenInstrInfo.inc"
61
62#define GET_SUBTARGETINFO_ENUM
63#include "PISAGenSubtargetInfo.inc"
64
65#endif // LLVM_LIB_TARGET_PISA_MCTARGETDESC_PISAMCTARGETDESC_H
Generic interface to target specific assembler backends.
MCCodeEmitter - Generic instruction encoding interface.
Context object for machine code objects.
Definition MCContext.h:84
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
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...
Streaming machine code generation interface.
Definition MCStreamer.h:221
Generic base class for all target subtargets.
Target specific streamer interface.
Definition MCStreamer.h:94
Target - Wrapper for Target specific information.
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
@ OPERAND_FIRST_TARGET
Definition MCInstrDesc.h:81
This is an optimization pass for GlobalISel generic memory operations.
MCTargetStreamer * createPISAAsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint)
MCTargetStreamer * createPISAObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
MCTargetStreamer * createPISANullTargetStreamer(MCStreamer &S)