1 //===- ConvertGPUToVulkanPass.h - GPU to Vulkan conversion pass -*- 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 // The file declares a pass to convert GPU dialect ops to to Vulkan runtime
10 // calls.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_CONVERSION_GPUTOVULKAN_CONVERTGPUTOVULKANPASS_H
15 #define MLIR_CONVERSION_GPUTOVULKAN_CONVERTGPUTOVULKANPASS_H
16 
17 #include "mlir/Support/LLVM.h"
18 
19 #include <memory>
20 
21 namespace mlir {
22 
23 class ModuleOp;
24 template <typename T>
25 class OperationPass;
26 
27 std::unique_ptr<OperationPass<ModuleOp>>
28 createConvertVulkanLaunchFuncToVulkanCallsPass();
29 
30 std::unique_ptr<OperationPass<mlir::ModuleOp>>
31 createConvertGpuLaunchFuncToVulkanLaunchFuncPass();
32 
33 } // namespace mlir
34 #endif // MLIR_CONVERSION_GPUTOVULKAN_CONVERTGPUTOVULKANPASS_H
35