[Mlir-commits] [mlir] [mlir][python] implement GenericOp bindings (PR #124496)
Kunwar Grover
llvmlistbot at llvm.org
Mon Jan 27 02:55:24 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):
----------------
Groverkss wrote:
Can you add a comment for future reference?
https://github.com/llvm/llvm-project/pull/124496
More information about the Mlir-commits
mailing list