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
21namespace mlir {
22
23class ModuleOp;
24template <typename T>
25class OperationPass;
26class Pass;
27
28#define GEN_PASS_DECL_CONVERTVULKANLAUNCHFUNCTOVULKANCALLSPASS
29#define GEN_PASS_DECL_CONVERTGPULAUNCHFUNCTOVULKANLAUNCHFUNC
30#include "mlir/Conversion/Passes.h.inc"
31
32std::unique_ptr<OperationPass<mlir::ModuleOp>>
33createConvertGpuLaunchFuncToVulkanLaunchFuncPass();
34
35} // namespace mlir
36#endif // MLIR_CONVERSION_GPUTOVULKAN_CONVERTGPUTOVULKANPASS_H
37

source code of mlir/include/mlir/Conversion/GPUToVulkan/ConvertGPUToVulkanPass.h