MLIR 22.0.0git
RegisterEverything.cpp
Go to the documentation of this file.
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
12
13NB_MODULE(_mlirRegisterEverything, m) {
14 m.doc() = "MLIR All Upstream Dialects, Translations and Passes Registration";
15
16 m.def("register_dialects", [](MlirDialectRegistry registry) {
18 });
19 m.def("register_llvm_translations",
20 [](MlirContext context) { mlirRegisterAllLLVMTranslations(context); });
21
22 // Register all passes on load.
24}
NB_MODULE(_mlirRegisterEverything, m)
MLIR_CAPI_EXPORTED void mlirRegisterAllLLVMTranslations(MlirContext context)
Register all translations to LLVM IR for dialects that can support it.
MLIR_CAPI_EXPORTED void mlirRegisterAllPasses(void)
Register all compiler passes of MLIR.
MLIR_CAPI_EXPORTED void mlirRegisterAllDialects(MlirDialectRegistry registry)
Appends all upstream dialects and extensions to the dialect registry.