[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / llvm / lib / Target / SPIRV / MCTargetDesc / SPIRVMCTargetDesc.h
blobabc8df34be0a668aa69e7f01d0c30758de9856c4
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.
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"
17 #include <memory>
19 namespace llvm {
20 class MCAsmBackend;
21 class MCCodeEmitter;
22 class MCContext;
23 class MCInstrInfo;
24 class MCObjectTargetWriter;
25 class MCRegisterInfo;
26 class MCSubtargetInfo;
27 class MCTargetOptions;
28 class Target;
30 MCCodeEmitter *createSPIRVMCCodeEmitter(const MCInstrInfo &MCII,
31 MCContext &Ctx);
33 MCAsmBackend *createSPIRVAsmBackend(const Target &T, const MCSubtargetInfo &STI,
34 const MCRegisterInfo &MRI,
35 const MCTargetOptions &Options);
37 std::unique_ptr<MCObjectTargetWriter> createSPIRVObjectTargetWriter();
38 } // namespace llvm
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