[all-commits] [llvm/llvm-project] fccbdc: [MLIR][Python] Support dynamic traits in python-de...
Twice via All-commits
all-commits at lists.llvm.org
Mon Feb 9 06:27:18 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fccbdcb15a1347e96a15e95ff540e03aea87ca00
https://github.com/llvm/llvm-project/commit/fccbdcb15a1347e96a15e95ff540e03aea87ca00
Author: Twice <twice at apache.org>
Date: 2026-02-09 (Mon, 09 Feb 2026)
Changed paths:
A mlir/include/mlir-c/ExtensibleDialect.h
M mlir/include/mlir/Bindings/Python/IRCore.h
M mlir/lib/Bindings/Python/IRCore.cpp
M mlir/lib/CAPI/IR/CMakeLists.txt
A mlir/lib/CAPI/IR/ExtensibleDialect.cpp
M mlir/test/python/dialects/ext.py
Log Message:
-----------
[MLIR][Python] Support dynamic traits in python-defined dialects (#179705)
This is a follow-up PR of #169045 and the second part of #179086.
In #179086, we added support for defining regions in Python-defined ops,
but its usefulness was quite limited because we still couldn’t mark an
op as a `Terminator` or `NoTerminator`. In this PR, we port the
`DynamicOpTrait` (introduced on the C++ side for `DynamicDialect` in
#177735) to Python, so we can dynamically attach traits to
Python-defined ops.
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