LLVM 17.0.0git
SPIRVMCTargetDesc.h
Go to the documentation of this file.
1//===-- SPIRVMCTargetDesc.h - SPIR-V 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 SPIR-V specific target descriptions.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H
14#define LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H
15
17#include <memory>
18
19namespace llvm {
20class MCAsmBackend;
21class MCCodeEmitter;
22class MCContext;
23class MCInstrInfo;
24class MCObjectTargetWriter;
25class MCRegisterInfo;
26class MCSubtargetInfo;
27class MCTargetOptions;
28class Target;
29
30MCCodeEmitter *createSPIRVMCCodeEmitter(const MCInstrInfo &MCII,
31 MCContext &Ctx);
32
33MCAsmBackend *createSPIRVAsmBackend(const Target &T, const MCSubtargetInfo &STI,
34 const MCRegisterInfo &MRI,
35 const MCTargetOptions &Options);
36
37std::unique_ptr<MCObjectTargetWriter> createSPIRVObjectTargetWriter();
38} // namespace llvm
39
40// Defines symbolic names for SPIR-V registers. This defines a mapping from
41// register name to register number.
42#define GET_REGINFO_ENUM
43#include "SPIRVGenRegisterInfo.inc"
44
45// Defines symbolic names for the SPIR-V instructions.
46#define GET_INSTRINFO_ENUM
47#define GET_INSTRINFO_MC_HELPER_DECLS
48#include "SPIRVGenInstrInfo.inc"
49
50#define GET_SUBTARGETINFO_ENUM
51#include "SPIRVGenSubtargetInfo.inc"
52
53#endif // LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H
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
MCCodeEmitter * createSPIRVMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
std::unique_ptr< MCObjectTargetWriter > createSPIRVObjectTargetWriter()
MCAsmBackend * createSPIRVAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)