[Mlir-commits] [mlir] [mlir][python] implement GenericOp bindings (PR #124496)

Maksim Levental llvmlistbot at llvm.org
Sun Jan 26 18:32:43 PST 2025


================
@@ -102,3 +104,45 @@ def broadcast(
     )
     fill_builtin_region(op.operation)
     return op
+
+
+ at register_attribute_builder("IteratorTypeArrayAttr")
+def _IteratorTypeArrayAttr(x, context):
+    return ArrayAttr.get([_iteratortypeenum(v, context) for v in x])
+
+
+class GenericOp_(GenericOp):
----------------
makslevental wrote:

need the underscore here so that opdsl generation doesn't break...

https://github.com/llvm/llvm-project/pull/124496


More information about the Mlir-commits mailing list