1//===- GPUToNVVM.h - Convert GPU 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 files declares registration functions for converting GPU to NVVM.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef MLIR_CONVERSION_GPUTONVVM_GPUTONVVM_H
14#define MLIR_CONVERSION_GPUTONVVM_GPUTONVVM_H
15
16namespace mlir {
17class DialectRegistry;
18namespace NVVM {
19/// Registers the `ConvertToLLVMAttrInterface` interface on the
20/// `NVVM::NVVMTargetAttr` attribute. This interface populates the conversion
21/// target, LLVM type converter, and pattern set for converting GPU operations
22/// to NVVM.
23void registerConvertGpuToNVVMInterface(DialectRegistry &registry);
24} // namespace NVVM
25} // namespace mlir
26
27#endif // MLIR_CONVERSION_GPUTONVVM_GPUTONVVM_H
28