MLIR
23.0.0git
include
mlir
Conversion
GPUToNVVM
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
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
mlir::DialectRegistry
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Definition
DialectRegistry.h:150
mlir::NVVM
Definition
GPUToNVVM.h:18
mlir::NVVM::registerConvertGpuToNVVMInterface
void registerConvertGpuToNVVMInterface(DialectRegistry ®istry)
Registers the ConvertToLLVMAttrInterface interface on the NVVM::NVVMTargetAttr attribute.
Definition
LowerGpuOpsToNVVMOps.cpp:598
mlir
Include the generated interface declarations.
Definition
ABIRewriteContext.h:29
Generated on
for MLIR by
1.14.0