projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc18222
)
oppc/code: emit symbol pseudocode
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 14 Jan 2024 12:46:49 +0000
(15:46 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 14 Jan 2024 12:47:49 +0000
(15:47 +0300)
src/openpower/oppc/pc_code.py
patch
|
blob
|
history
diff --git
a/src/openpower/oppc/pc_code.py
b/src/openpower/oppc/pc_code.py
index 1b66a1ca1e027505faaedf1382ffd09441907ead..77bdd429a38011128ea79530680a0713c8702a65 100644
(file)
--- a/
src/openpower/oppc/pc_code.py
+++ b/
src/openpower/oppc/pc_code.py
@@
-403,7
+403,8
@@
class CodeVisitor(pc_util.Visitor):
def Symbol(self, node):
yield node
self.__decls[str(node)].append(node)
- self[node].emit(stmt=f"&{str(node)}")
+ with self.pseudocode(node=node):
+ self[node].emit(stmt=f"&{str(node)}")
@pc_util.Hook(pc_ast.Node)
def Node(self, node):