My Project
ConvertGPUToSPIRV.h
Go to the documentation of this file.
1 //===- ConvertGPUToSPIRV.h - GPU Ops to SPIR-V dialect patterns ----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 //
9 // Provides patterns for lowering GPU Ops to SPIR-V dialect.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRV_H
14 #define MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRV_H
15 
17 
18 namespace mlir {
19 class SPIRVTypeConverter;
23 void populateGPUToSPIRVPatterns(MLIRContext *context,
24  SPIRVTypeConverter &typeConverter,
25  OwningRewritePatternList &patterns,
26  ArrayRef<int64_t> workGroupSize);
27 } // namespace mlir
28 
29 #endif // MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRV_H
Definition: InferTypeOpInterface.cpp:20
void populateGPUToSPIRVPatterns(MLIRContext *context, SPIRVTypeConverter &typeConverter, OwningRewritePatternList &patterns, ArrayRef< int64_t > workGroupSize)
Definition: ConvertGPUToSPIRV.cpp:345