• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//===-- Passes.td - GPU pass definition file ---------------*- tablegen -*-===//
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#ifndef MLIR_DIALECT_GPU_PASSES
10#define MLIR_DIALECT_GPU_PASSES
11
12include "mlir/Pass/PassBase.td"
13
14def GpuKernelOutlining : Pass<"gpu-kernel-outlining", "ModuleOp"> {
15  let summary = "Outline gpu.launch bodies to kernel functions";
16  let constructor = "mlir::createGpuKernelOutliningPass()";
17}
18
19def GpuAsyncRegionPass : FunctionPass<"gpu-async-region"> {
20  let summary = "Make GPU ops async";
21  let constructor = "mlir::createGpuAsyncRegionPass()";
22}
23
24#endif // MLIR_DIALECT_GPU_PASSES
25