1 //===- RegisterEverything.cpp - API to register all dialects/passes -------===// 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 #include "mlir-c/RegisterEverything.h" 10 #include "mlir-c/Conversion.h" 11 #include "mlir-c/Transforms.h" 12 13 #include "mlir/Bindings/Python/PybindAdaptors.h" 14 15 PYBIND11_MODULE(_mlirRegisterEverything, m) { 16 m.doc() = "MLIR All Upstream Dialects and Passes Registration"; 17 18 m.def("register_dialects", [](MlirDialectRegistry registry) { 19 mlirRegisterAllDialects(registry); 20 }); 21 22 // Register all passes on load. 23 mlirRegisterAllPasses(); 24 mlirRegisterConversionPasses(); 25 mlirRegisterTransformsPasses(); 26 } 27