Skip to content

Commit

Permalink
Improve printing of check_subset, and constructor of YieldOp
Browse files Browse the repository at this point in the history
  • Loading branch information
math-fehr committed May 10, 2024
1 parent 54e27ef commit 27faab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xdsl_pdl/dialects/irdl_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def parse(cls: type[CheckSubsetOp], parser: Parser) -> CheckSubsetOp:

def print(self, printer: Printer) -> None:
printer.print(" ", self.lhs, " of ", self.rhs)
printer.print_attr_dict(self.attributes)
printer.print_op_attributes(self.attributes)


@irdl_op_definition
Expand All @@ -57,7 +57,7 @@ def __init__(
attr_dict: DictionaryAttr | None = None,
):
super().__init__(
operands=args,
operands=[args],
attributes=attr_dict.data if attr_dict is not None else None,
)

Expand Down

0 comments on commit 27faab0

Please sign in to comment.