From: Dmitry Selyutin Date: Fri, 12 Jan 2024 20:13:34 +0000 (+0300) Subject: oppc/pseudocode: simplify call arguments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5718885d76dae4fe656d9f33f50df83b12f1aff;p=openpower-isa.git oppc/pseudocode: simplify call arguments --- diff --git a/src/openpower/oppc/pc_pseudocode.py b/src/openpower/oppc/pc_pseudocode.py index a04a9924..b9d1b964 100644 --- a/src/openpower/oppc/pc_pseudocode.py +++ b/src/openpower/oppc/pc_pseudocode.py @@ -34,10 +34,9 @@ class PseudocodeVisitor(pc_util.Visitor): def Call(self, node): yield node args = [] - for subnode in node.args: - for (level, stmt) in self[subnode]: - assert level == 0 - args.append(stmt) + for (level, stmt) in self[node.args]: + assert level == 0 + args.append(stmt) args = ", ".join(args) stmt = f"{node.name}({args})" self[node].emit(stmt=stmt)