1//===- LLVMIRToNVVMTranslation.h - LLVM IR to NVVM Dialect ------*- 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 LLVM IR to NVVM dialect translation.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_TARGET_LLVMIR_DIALECT_NVVM_LLVMIRTONVVMTRANSLATION_H
14#define MLIR_TARGET_LLVMIR_DIALECT_NVVM_LLVMIRTONVVMTRANSLATION_H
15
16namespace mlir {
17
18class DialectRegistry;
19class MLIRContext;
20
21/// Registers the NVVM dialect and its import from LLVM IR in the given
22/// registry.
23void registerNVVMDialectImport(DialectRegistry &registry);
24
25/// Registers the NVVM dialect and its import from LLVM IR with the given
26/// context.
27void registerNVVMDialectImport(MLIRContext &context);
28
29} // namespace mlir
30
31#endif // MLIR_TARGET_LLVMIR_DIALECT_NVVM_LLVMIRTONVVMTRANSLATION_H
32

source code of mlir/include/mlir/Target/LLVMIR/Dialect/NVVM/LLVMIRToNVVMTranslation.h