[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/9] Hexagon (target/hexagon) Make generators object oriented - g
From: |
Taylor Simpson |
Subject: |
[PATCH 6/9] Hexagon (target/hexagon) Make generators object oriented - gen_op_regs |
Date: |
Mon, 4 Dec 2023 18:53:00 -0700 |
Signed-off-by: Taylor Simpson <ltaylorsimpson@gmail.com>
---
target/hexagon/gen_op_regs.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/target/hexagon/gen_op_regs.py b/target/hexagon/gen_op_regs.py
index a8a7712129..7b7b33895a 100755
--- a/target/hexagon/gen_op_regs.py
+++ b/target/hexagon/gen_op_regs.py
@@ -70,6 +70,7 @@ def strip_reg_prefix(x):
def main():
hex_common.read_semantics_file(sys.argv[1])
hex_common.read_attribs_file(sys.argv[2])
+ hex_common.init_registers()
tagregs = hex_common.get_tagregs(full=True)
tagimms = hex_common.get_tagimms()
@@ -80,11 +81,12 @@ def main():
wregs = []
regids = ""
for regtype, regid, _, numregs in regs:
- if hex_common.is_read(regid):
+ reg = hex_common.get_register(tag, regtype, regid)
+ if reg.is_read():
if regid[0] not in regids:
regids += regid[0]
rregs.append(regtype + regid + numregs)
- if hex_common.is_written(regid):
+ if reg.is_written():
wregs.append(regtype + regid + numregs)
if regid[0] not in regids:
regids += regid[0]
--
2.34.1
- RE: [PATCH 3/9] Hexagon (target/hexagon) Make generators object oriented - gen_helper_protos, (continued)
[PATCH 5/9] Hexagon (target/hexagon) Make generators object oriented - gen_idef_parser_funcs, Taylor Simpson, 2023/12/04
[PATCH 2/9] Hexagon (target/hexagon) Make generators object oriented - gen_tcg_funcs, Taylor Simpson, 2023/12/04
[PATCH 4/9] Hexagon (target/hexagon) Make generators object oriented - gen_helper_funcs, Taylor Simpson, 2023/12/04
[PATCH 1/9] Hexagon (target/hexagon) Clean up handling of modifier registers, Taylor Simpson, 2023/12/04
[PATCH 8/9] Hexagon (target/hexagon) Remove unused WRITES_PRED_REG attribute, Taylor Simpson, 2023/12/04
[PATCH 7/9] Hexagon (target/hexagon) Make generators object oriented - gen_analyze_funcs, Taylor Simpson, 2023/12/04
[PATCH 6/9] Hexagon (target/hexagon) Make generators object oriented - gen_op_regs,
Taylor Simpson <=
[PATCH 9/9] Hexagon (target/hexagon) Remove dead functions from hex_common.py, Taylor Simpson, 2023/12/04