Skip to content

Commit a5f29f1

Browse files
committed
fix native constraint op in mlir python bindings
1 parent 5082c91 commit a5f29f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/python/mlir/dialects/_pdl_ops_ext.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ class ApplyNativeConstraintOp:
5858

5959
def __init__(self,
6060
name: Union[str, StringAttr],
61+
results: Sequence[Type] = [],
6162
args: Sequence[Union[OpView, Operation, Value]] = [],
6263
*,
6364
loc=None,
6465
ip=None):
6566
name = _get_str_attr(name)
6667
args = _get_values(args)
67-
super().__init__(name, args, loc=loc, ip=ip)
68+
results = _get_values(results)
69+
super().__init__(results, name, args, loc=loc, ip=ip)
6870

6971

7072
class ApplyNativeRewriteOp:

0 commit comments

Comments
 (0)