[Mlir-commits] [mlir] [MLIR][Python] fix StandalonePythonModules shipping all dialect modules (PR #155870)
Maksim Levental
llvmlistbot at llvm.org
Thu Aug 28 08:59:12 PDT 2025
https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/155870
None
>From 05337fe1a43c4eeda83f22ae0775ccb748373d34 Mon Sep 17 00:00:00 2001
From: makslevental <maksim.levental at gmail.com>
Date: Thu, 28 Aug 2025 11:56:35 -0400
Subject: [PATCH] [MLIR][Python] fix StandalonePythonModules shipping all
dialect modules
---
mlir/examples/standalone/test/python/smoketest.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/mlir/examples/standalone/test/python/smoketest.py b/mlir/examples/standalone/test/python/smoketest.py
index bd40c65d16164..a1c8821882e70 100644
--- a/mlir/examples/standalone/test/python/smoketest.py
+++ b/mlir/examples/standalone/test/python/smoketest.py
@@ -24,3 +24,10 @@
# CHECK: %[[C:.*]] = arith.constant 2 : i32
# CHECK: standalone.foo %[[C]] : i32
print(str(module))
+
+try:
+ from mlir_standalone.dialects import quant
+except ImportError as e:
+ assert "symbol not found in flat namespace '_mlirTypeIsAAnyQuantizedType'" not in e.args[0]
+else:
+ assert False, "expected exception not raised"
\ No newline at end of file
More information about the Mlir-commits
mailing list