MLIR 22.0.0git
GPUToNVVM.h
Go to the documentation of this file.
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.
24} // namespace NVVM
25} // namespace mlir
26
27#endif // MLIR_CONVERSION_GPUTONVVM_GPUTONVVM_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
void registerConvertGpuToNVVMInterface(DialectRegistry &registry)
Registers the ConvertToLLVMAttrInterface interface on the NVVM::NVVMTargetAttr attribute.
Include the generated interface declarations.