My Project
GPUToNVVMPass.h
Go to the documentation of this file.
1 //===- GPUToNVVMPass.h - Convert GPU kernel to NVVM dialect -----*- C++ -*-===//
2 //
3 // Part of the MLIR 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 #ifndef MLIR_CONVERSION_GPUTONVVM_GPUTONVVMPASS_H_
9 #define MLIR_CONVERSION_GPUTONVVM_GPUTONVVMPASS_H_
10 
11 #include <memory>
12 
13 namespace mlir {
14 class LLVMTypeConverter;
15 class OwningRewritePatternList;
16 
17 class ModuleOp;
18 template <typename OpT> class OpPassBase;
19 
21 void populateGpuToNVVMConversionPatterns(LLVMTypeConverter &converter,
22  OwningRewritePatternList &patterns);
23 
25 std::unique_ptr<OpPassBase<ModuleOp>> createLowerGpuOpsToNVVMOpsPass();
26 
27 } // namespace mlir
28 
29 #endif // MLIR_CONVERSION_GPUTONVVM_GPUTONVVMPASS_H_
Definition: InferTypeOpInterface.cpp:20
void populateGpuToNVVMConversionPatterns(LLVMTypeConverter &converter, OwningRewritePatternList &patterns)
Collect a set of patterns to convert from the GPU dialect to NVVM.
Definition: LowerGpuOpsToNVVMOps.cpp:728
std::unique_ptr< OpPassBase< ModuleOp > > createLowerGpuOpsToNVVMOpsPass()
Creates a pass that lowers GPU dialect operations to NVVM counterparts.
Definition: LowerGpuOpsToNVVMOps.cpp:746