My Project
ConvertGPUToSPIRVPass.h
Go to the documentation of this file.
1 //===- ConvertGPUToSPIRVPass.h - GPU to SPIR-V conversion pass --*- 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 a pass to convert GPU ops to SPIRV ops.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H
14 #define MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H
15 
16 #include "mlir/Support/LLVM.h"
17 
18 #include <memory>
19 
20 namespace mlir {
21 
22 class ModuleOp;
23 template <typename T> class OpPassBase;
24 
27 std::unique_ptr<OpPassBase<ModuleOp>>
28 createConvertGPUToSPIRVPass(ArrayRef<int64_t> workGroupSize);
29 
30 } // namespace mlir
31 #endif // MLIR_CONVERSION_GPUTOSPIRV_CONVERTGPUTOSPIRVPASS_H
Definition: InferTypeOpInterface.cpp:20
std::unique_ptr< OpPassBase< ModuleOp > > createConvertGPUToSPIRVPass(ArrayRef< int64_t > workGroupSize)
Definition: ConvertGPUToSPIRVPass.cpp:91