From 432e618ac81f00fc2665bdf558d5bde4f24c58f1 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 14 Jan 2024 23:52:36 +0300 Subject: [PATCH] oppc/code: deprecate redundant ampersands --- src/openpower/oppc/pc_code.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.30.2