[Mlir-commits] [mlir] [mlir][python] Register all translations in the RegisterEverything for python (PR #70428)
Jungwook Park
llvmlistbot at llvm.org
Fri Oct 27 12:22:48 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:
You're right, I was confused with `registerAllTranslation`
https://github.com/llvm/llvm-project/pull/70428
More information about the Mlir-commits
mailing list