| 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 | |
| 16 | namespace mlir { |
| 17 | class DialectRegistry; |
| 18 | namespace 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. |
| 23 | void registerConvertGpuToNVVMInterface(DialectRegistry ®istry); |
| 24 | } // namespace NVVM |
| 25 | } // namespace mlir |
| 26 | |
| 27 | #endif // MLIR_CONVERSION_GPUTONVVM_GPUTONVVM_H |
| 28 | |