[Mlir-commits] [mlir] [mlir][python] Register all translations in the RegisterEverything for python (PR #70428)

Jungwook Park llvmlistbot at llvm.org
Mon Oct 30 05:02:01 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:

Currently there's no 'pass' for the translations other than `to llvm`. Only `convert-gpu-launch-to-vulkan-launch` calls spirv::serialize at the moment but it's only a part of vulkan conversion.
I'd say, llvm exporting is all needed for now.

I'm going to discuss creating a new pass for spirv serialization in line with the recent change in gpu codegen pipeline.
Please merge this @joker-eph if that makes sense to you, I don't have a permission.

https://github.com/llvm/llvm-project/pull/70428


More information about the Mlir-commits mailing list