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> class OperationPass; 25 26 std::unique_ptr<OperationPass<ModuleOp>> 27 createConvertVulkanLaunchFuncToVulkanCallsPass(); 28 29 std::unique_ptr<OperationPass<mlir::ModuleOp>> 30 createConvertGpuLaunchFuncToVulkanLaunchFuncPass(); 31 32 } // namespace mlir 33 #endif // MLIR_CONVERSION_GPUTOVULKAN_CONVERTGPUTOVULKANPASS_H 34