[Mlir-commits] [mlir] [MLIR][Python] Support region in python-defined dialects (PR #179086)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Feb 2 05:43:15 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)
----------------
PragmaTwice wrote:
looks great!
https://github.com/llvm/llvm-project/pull/179086
More information about the Mlir-commits
mailing list