From: Dmitry Selyutin Date: Sun, 14 Jan 2024 20:52:36 +0000 (+0300) Subject: oppc/code: deprecate redundant ampersands X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=432e618ac81f00fc2665bdf558d5bde4f24c58f1;p=openpower-isa.git oppc/code: deprecate redundant ampersands --- diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index 41e95c6c..04dcf236 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -387,7 +387,7 @@ class CodeVisitor(pc_util.Visitor): def GPR(self, node): yield node with self.pseudocode(node=node): - self[node].emit(stmt=f"&OPPC_GPR[OPPC_GPR_{str(node)}]") + self[node].emit(stmt=f"OPPC_GPR_{str(node)}") @pc_util.Hook(pc_ast.GPRZero) def GPRZero(self, node): @@ -406,7 +406,7 @@ class CodeVisitor(pc_util.Visitor): def FPR(self, node): yield node with self.pseudocode(node=node): - self[node].emit(stmt=f"&OPPC_FPR[OPPC_FPR_{str(node)}]") + self[node].emit(stmt=f"OPPC_FPR_{str(node)}") @pc_util.Hook(pc_ast.RepeatExpr) def RepeatExpr(self, node): @@ -434,7 +434,7 @@ class CodeVisitor(pc_util.Visitor): def Special(self, node): yield node with self.pseudocode(node=node): - self[node].emit(stmt=f"&OPPC_{str(node).upper()}") + self[node].emit(stmt=f"OPPC_{str(node).upper()}") @pc_util.Hook(pc_ast.SubscriptExpr) def SubscriptExpr(self, node):