MLIR  20.0.0git
SPIRVToLLVMIRTranslation.h
Go to the documentation of this file.
1 //===- SPIRVToLLVMIRTranslation.h - SPIR-V to LLVM IR -----------*- 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 provides registration calls for SPIR-V dialect to LLVM IR translation.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_TARGET_LLVMIR_DIALECT_SPIRV_SPIRVTOLLVMIRTRANSLATION_H
14 #define MLIR_TARGET_LLVMIR_DIALECT_SPIRV_SPIRVTOLLVMIRTRANSLATION_H
15 
16 namespace mlir {
17 
18 class DialectRegistry;
19 class MLIRContext;
20 
21 /// Register the SPIR-V dialect and the translation from it to the LLVM IR in
22 /// the given registry;
23 void registerSPIRVDialectTranslation(DialectRegistry &registry);
24 
25 /// Register the SPIR-V dialect and the translation from it in the registry
26 /// associated with the given context.
27 void registerSPIRVDialectTranslation(MLIRContext &context);
28 
29 } // namespace mlir
30 
31 #endif // MLIR_TARGET_LLVMIR_DIALECT_SPIRV_SPIRVTOLLVMIRTRANSLATION_H
Include the generated interface declarations.
void registerSPIRVDialectTranslation(DialectRegistry &registry)
Register the SPIR-V dialect and the translation from it to the LLVM IR in the given registry;.