oppc/code: rename oppc_int to oppc_value
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 14 Jan 2024 13:34:36 +0000 (16:34 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:07 +0000 (22:10 +0300)
src/openpower/oppc/pc_code.py

index d18bd1406ba7717a2c536fc7da2556958c32e9b9..c0e8ca1737175f8fad2774817081fe3cba2e87eb 100644 (file)
@@ -14,7 +14,7 @@ class Transient(pc_ast.Node):
         return super().__init__()
 
     def __str__(self):
-        return f"oppc_transient(&(struct oppc_int){{}}, {self.__value}, {self.__bits})"
+        return f"oppc_transient(&(struct oppc_value){{}}, {self.__value}, {self.__bits})"
 
 
 class CCall(pc_ast.Dataclass):
@@ -40,7 +40,7 @@ class CodeVisitor(pc_util.Visitor):
         self.__code[self.__header].emit(stmt=f"oppc_{name}(void) {{")
         with self.__code[self.__header]:
             for decl in self.__decls:
-                self.__code[self.__header].emit(stmt=f"struct oppc_int {decl};")
+                self.__code[self.__header].emit(stmt=f"struct oppc_value {decl};")
         self.__code[self.__footer].emit(stmt=f"}}")
 
     def __iter__(self):