xref: /llvm-project/mlir/lib/Bindings/Python/AsyncPasses.cpp (revision 5cd427477218d8bdb659c6c53a7758f741c3990a)
1e7db8408SNicolas Vasilache //===- AsyncPasses.cpp - Pybind module for the Async passes -------------===//
2e7db8408SNicolas Vasilache //
3e7db8408SNicolas Vasilache // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e7db8408SNicolas Vasilache // See https://llvm.org/LICENSE.txt for license information.
5e7db8408SNicolas Vasilache // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e7db8408SNicolas Vasilache //
7e7db8408SNicolas Vasilache //===----------------------------------------------------------------------===//
8e7db8408SNicolas Vasilache 
9e7db8408SNicolas Vasilache #include "mlir-c/Dialect/Async.h"
10e7db8408SNicolas Vasilache 
11*5cd42747SPeter Hawkins #include "mlir/Bindings/Python/Nanobind.h"
12e7db8408SNicolas Vasilache 
13e7db8408SNicolas Vasilache // -----------------------------------------------------------------------------
14e7db8408SNicolas Vasilache // Module initialization.
15e7db8408SNicolas Vasilache // -----------------------------------------------------------------------------
16e7db8408SNicolas Vasilache 
17*5cd42747SPeter Hawkins NB_MODULE(_mlirAsyncPasses, m) {
18e7db8408SNicolas Vasilache   m.doc() = "MLIR Async Dialect Passes";
19e7db8408SNicolas Vasilache 
20e7db8408SNicolas Vasilache   // Register all Async passes on load.
21e7db8408SNicolas Vasilache   mlirRegisterAsyncPasses();
22e7db8408SNicolas Vasilache }
23