MLIR  20.0.0git
GPUToLLVMSPVPass.h
Go to the documentation of this file.
1 //===- GPUToLLVMSPVPass.h - Convert GPU kernel to LLVM operations *- 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 #ifndef MLIR_CONVERSION_GPUTOLLVMSPV_GPUTOLLVMSPVPASS_H_
10 #define MLIR_CONVERSION_GPUTOLLVMSPV_GPUTOLLVMSPVPASS_H_
11 
12 #include <memory>
13 
14 namespace mlir {
15 class DialectRegistry;
16 class LLVMTypeConverter;
17 class RewritePatternSet;
18 class Pass;
19 class TypeConverter;
20 
21 #define GEN_PASS_DECL_CONVERTGPUOPSTOLLVMSPVOPS
22 #include "mlir/Conversion/Passes.h.inc"
23 
24 void populateGpuToLLVMSPVConversionPatterns(const LLVMTypeConverter &converter,
25  RewritePatternSet &patterns);
26 
27 /// Populates memory space attribute conversion rules for lowering
28 /// gpu.address_space to integer values.
29 void populateGpuMemorySpaceAttributeConversions(TypeConverter &typeConverter);
30 } // namespace mlir
31 
32 #endif // MLIR_CONVERSION_GPUTOLLVMSPV_GPUTOLLVMSPVPASS_H_
Include the generated interface declarations.
void populateGpuToLLVMSPVConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns)
void populateGpuMemorySpaceAttributeConversions(TypeConverter &typeConverter, const MemorySpaceMapping &mapping)
Populates memory space attribute conversion rules for lowering gpu.address_space to integer values.