1*5e83a5b4SStella Laurenzo //===- RegisterEverything.cpp - API to register all dialects/passes -------===//
2*5e83a5b4SStella Laurenzo //
3*5e83a5b4SStella Laurenzo // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*5e83a5b4SStella Laurenzo // See https://llvm.org/LICENSE.txt for license information.
5*5e83a5b4SStella Laurenzo // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*5e83a5b4SStella Laurenzo //
7*5e83a5b4SStella Laurenzo //===----------------------------------------------------------------------===//
8*5e83a5b4SStella Laurenzo 
9*5e83a5b4SStella Laurenzo #include "mlir-c/RegisterEverything.h"
10*5e83a5b4SStella Laurenzo #include "mlir-c/Conversion.h"
11*5e83a5b4SStella Laurenzo #include "mlir-c/Transforms.h"
12*5e83a5b4SStella Laurenzo 
13*5e83a5b4SStella Laurenzo #include "mlir/Bindings/Python/PybindAdaptors.h"
14*5e83a5b4SStella Laurenzo 
PYBIND11_MODULE(_mlirRegisterEverything,m)15*5e83a5b4SStella Laurenzo PYBIND11_MODULE(_mlirRegisterEverything, m) {
16*5e83a5b4SStella Laurenzo   m.doc() = "MLIR All Upstream Dialects and Passes Registration";
17*5e83a5b4SStella Laurenzo 
18*5e83a5b4SStella Laurenzo   m.def("register_dialects", [](MlirDialectRegistry registry) {
19*5e83a5b4SStella Laurenzo     mlirRegisterAllDialects(registry);
20*5e83a5b4SStella Laurenzo   });
21*5e83a5b4SStella Laurenzo 
22*5e83a5b4SStella Laurenzo   // Register all passes on load.
23*5e83a5b4SStella Laurenzo   mlirRegisterAllPasses();
24*5e83a5b4SStella Laurenzo   mlirRegisterConversionPasses();
25*5e83a5b4SStella Laurenzo   mlirRegisterTransformsPasses();
26*5e83a5b4SStella Laurenzo }
27