From 27faab0e4d0e98f8de5c29ab47f15116623b1fe2 Mon Sep 17 00:00:00 2001 From: Mathieu Fehr Date: Fri, 10 May 2024 18:17:04 +0100 Subject: [PATCH] Improve printing of check_subset, and constructor of YieldOp --- xdsl_pdl/dialects/irdl_extension.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xdsl_pdl/dialects/irdl_extension.py b/xdsl_pdl/dialects/irdl_extension.py index f6f5279..dcbfded 100644 --- a/xdsl_pdl/dialects/irdl_extension.py +++ b/xdsl_pdl/dialects/irdl_extension.py @@ -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 @@ -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, )