summaryrefslogtreecommitdiff
path: root/mlir/test/python/python_test_ops.td
diff options
context:
space:
mode:
authorMaksim Levental <maksim.levental@gmail.com>2025-09-18 22:12:35 -0400
committerGitHub <noreply@github.com>2025-09-18 21:12:35 -0500
commit67f43c6ee2f0a5e8d252cce589ea7d157676e990 (patch)
tree1747f603fadfcd6322298e1869163df8519dcfd4 /mlir/test/python/python_test_ops.td
parente5114a2016557fc0dd6014b838e91ca025e23b29 (diff)
[MLIR][Python] add type hints for accessors (#158455)
This PR adds type hints for accessors in the generated builders.
Diffstat (limited to 'mlir/test/python/python_test_ops.td')
-rw-r--r--mlir/test/python/python_test_ops.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/mlir/test/python/python_test_ops.td b/mlir/test/python/python_test_ops.td
index 1e94b94dc714..cfc1d72bb479 100644
--- a/mlir/test/python/python_test_ops.td
+++ b/mlir/test/python/python_test_ops.td
@@ -269,4 +269,9 @@ def ResultsVariadicOp : TestOp<"results_variadic"> {
let results = (outs Variadic<AnyType>:$res);
}
+def VariadicAndNormalRegionOp : TestOp<"variadic_and_normal_region"> {
+ let regions = (region AnyRegion:$region, VariadicRegion<AnyRegion>:$variadic);
+ let assemblyFormat = "$region $variadic attr-dict";
+}
+
#endif // PYTHON_TEST_OPS