[all-commits] [llvm/llvm-project] 1c5b66: [mlir][python] Register linalg.ElementwiseOp wrapp...
Maksim Levental via All-commits
all-commits at lists.llvm.org
Tue Sep 15 16:46:41 PDT 2026
Branch: refs/heads/users/makslevental/fix-linalg-elemwise
Home: https://github.com/llvm/llvm-project
Commit: 1c5b666bb8bca0d76a7548f369dab255fbbc5bde
https://github.com/llvm/llvm-project/commit/1c5b666bb8bca0d76a7548f369dab255fbbc5bde
Author: makslevental <maksim.levental at gmail.com>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M mlir/python/mlir/dialects/linalg/__init__.py
M mlir/test/python/dialects/linalg/ops.py
Log Message:
-----------
[mlir][python] Register linalg.ElementwiseOp wrapper as op view
The hand-written ElementwiseOp wrapper subclassed the generated OpView but
was not registered in the op-view registry, so ops reconstructed from the
registry (e.g. Operation.opview) were instances of the generated base class
rather than the publicly exported subclass. This made
isinstance(op.opview, linalg.ElementwiseOp) and match/case dispatch return
False for real linalg.elementwise ops.
Register the wrapper with replace=True (as pdl.py does) so the exported
class is the one the registry instantiates.
Fixes #223673
Commit: d6b8eef28ce696640d70e4e5b6393f62d33e474b
https://github.com/llvm/llvm-project/commit/d6b8eef28ce696640d70e4e5b6393f62d33e474b
Author: makslevental <maksim.levental at gmail.com>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M mlir/test/python/dialects/linalg/ops.py
Log Message:
-----------
Remove comment per review
Compare: https://github.com/llvm/llvm-project/compare/8dd96a67c4f8...d6b8eef28ce6
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list