Path: blob/main/contrib/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVMCTargetDesc.h
35294 views
//===-- SPIRVMCTargetDesc.h - SPIR-V Target Descriptions --------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file provides SPIR-V specific target descriptions.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H13#define LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H1415#include "llvm/Support/DataTypes.h"16#include <memory>1718namespace llvm {19class MCAsmBackend;20class MCCodeEmitter;21class MCContext;22class MCInstrInfo;23class MCObjectTargetWriter;24class MCRegisterInfo;25class MCSubtargetInfo;26class MCTargetOptions;27class Target;2829MCCodeEmitter *createSPIRVMCCodeEmitter(const MCInstrInfo &MCII,30MCContext &Ctx);3132MCAsmBackend *createSPIRVAsmBackend(const Target &T, const MCSubtargetInfo &STI,33const MCRegisterInfo &MRI,34const MCTargetOptions &Options);3536std::unique_ptr<MCObjectTargetWriter> createSPIRVObjectTargetWriter();37} // namespace llvm3839// Defines symbolic names for SPIR-V registers. This defines a mapping from40// register name to register number.41#define GET_REGINFO_ENUM42#include "SPIRVGenRegisterInfo.inc"4344// Defines symbolic names for the SPIR-V instructions.45#define GET_INSTRINFO_ENUM46#define GET_INSTRINFO_MC_HELPER_DECLS47#include "SPIRVGenInstrInfo.inc"4849#define GET_SUBTARGETINFO_ENUM50#include "SPIRVGenSubtargetInfo.inc"5152#endif // LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H535455