[Mlir-commits] [mlir] [mlir][python] Register all translations in the RegisterEverything for python (PR #70428)
Jungwook Park
llvmlistbot at llvm.org
Fri Oct 27 13:13:27 PDT 2023
================
@@ -7,20 +7,17 @@
//===----------------------------------------------------------------------===//
#include "mlir-c/RegisterEverything.h"
-#include "mlir-c/Conversion.h"
-#include "mlir-c/Transforms.h"
-
#include "mlir/Bindings/Python/PybindAdaptors.h"
PYBIND11_MODULE(_mlirRegisterEverything, m) {
- m.doc() = "MLIR All Upstream Dialects and Passes Registration";
+ m.doc() = "MLIR All Upstream Dialects, Translations and Passes Registration";
m.def("register_dialects", [](MlirDialectRegistry registry) {
mlirRegisterAllDialects(registry);
});
+ m.def("register_translations",
----------------
jungpark-mlir wrote:
I'm fine with making that change, the only reason I've only made llvm translation was, `mlirRegisterAllLLVMTranslations` is currently the only available method in C-API to register the translations.
If nothing blocks, I'd add more C-API functions for the translations and then do register_all_translation in python.
https://github.com/llvm/llvm-project/pull/70428
More information about the Mlir-commits
mailing list