[Mlir-commits] [mlir] [MLIR][Python] Support region in python-defined dialects (PR #179086)
Rolf Morel
llvmlistbot at llvm.org
Mon Feb 2 05:14:52 PST 2026
================
@@ -254,7 +274,11 @@ def _generate_init_signature(
)
# results are placed at the beginning of the parameter list,
# but operands and attributes can appear in any relative order.
- args = result_args + [i for i in fields if not isinstance(i, ResultDef)]
+ args = result_args + [
+ i
+ for i in fields
+ if not isinstance(i, ResultDef) and not isinstance(i, RegionDef)
----------------
rolfmorel wrote:
```suggestion
if not isinstance(i, ResultDef | RegionDef)
```
With thanks to De Morgan.
https://github.com/llvm/llvm-project/pull/179086
More information about the Mlir-commits
mailing list