1 //===-- SPIRVMCTargetDesc.h - SPIR-V Target Descriptions --------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file provides SPIR-V specific target descriptions.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H
14 #define LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H
16 #include "llvm/Support/DataTypes.h"
24 class MCObjectTargetWriter
;
26 class MCSubtargetInfo
;
27 class MCTargetOptions
;
30 MCCodeEmitter
*createSPIRVMCCodeEmitter(const MCInstrInfo
&MCII
,
33 MCAsmBackend
*createSPIRVAsmBackend(const Target
&T
, const MCSubtargetInfo
&STI
,
34 const MCRegisterInfo
&MRI
,
35 const MCTargetOptions
&Options
);
37 std::unique_ptr
<MCObjectTargetWriter
> createSPIRVObjectTargetWriter();
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"
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"
50 #define GET_SUBTARGETINFO_ENUM
51 #include "SPIRVGenSubtargetInfo.inc"
53 #endif // LLVM_LIB_TARGET_SPIRV_MCTARGETDESC_SPIRVMCTARGETDESC_H