[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 24/66] Hexagon generator phase 2 - op_attribs_generated.h
From: |
Taylor Simpson |
Subject: |
[RFC PATCH 24/66] Hexagon generator phase 2 - op_attribs_generated.h |
Date: |
Mon, 10 Feb 2020 18:40:02 -0600 |
Lists all the attributes associated with each instruction
Signed-off-by: Taylor Simpson <address@hidden>
---
target/hexagon/do_qemu.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/target/hexagon/do_qemu.py b/target/hexagon/do_qemu.py
index 5439964..f297931 100755
--- a/target/hexagon/do_qemu.py
+++ b/target/hexagon/do_qemu.py
@@ -797,3 +797,16 @@ realf.write(f.getvalue())
realf.close()
f.close()
+##
+## Generate the op_attribs_generated.h file
+## Lists all the attributes associated with each instruction
+##
+f = StringIO()
+for tag in tags:
+ f.write('OP_ATTRIB(%s,ATTRIBS(%s))\n' % \
+ (tag,string.join(sorted(attribdict[tag]),",")))
+realf = open('op_attribs_generated.h', 'wt')
+realf.write(f.getvalue())
+realf.close()
+f.close()
+
--
2.7.4
- Re: [RFC PATCH 20/66] Hexagon generator phase 1 - C preprocessor for semantics, (continued)
- [RFC PATCH 03/66] Hexagon CPU Scalar Core Definition, Taylor Simpson, 2020/02/10
- [RFC PATCH 18/66] Hexagon instruction class definitions, Taylor Simpson, 2020/02/10
- [RFC PATCH 07/66] Hexagon GDB Stub, Taylor Simpson, 2020/02/10
- [RFC PATCH 09/66] Hexagon architecture types, Taylor Simpson, 2020/02/10
- [RFC PATCH 14/66] Hexagon instruction printing, Taylor Simpson, 2020/02/10
- [RFC PATCH 08/66] Hexagon instruction and packet types, Taylor Simpson, 2020/02/10
- [RFC PATCH 26/66] Hexagon generator phase 2 - printinsn-generated.h, Taylor Simpson, 2020/02/10
- [RFC PATCH 06/66] Hexagon CPU Scalar Core Helpers, Taylor Simpson, 2020/02/10
- [RFC PATCH 24/66] Hexagon generator phase 2 - op_attribs_generated.h,
Taylor Simpson <=
- [RFC PATCH 25/66] Hexagon generator phase 2 - op_regs_generated.h, Taylor Simpson, 2020/02/10
- [RFC PATCH 11/66] Hexagon instruction attributes, Taylor Simpson, 2020/02/10
- [RFC PATCH 28/66] Hexagon generater phase 4 - Decode tree, Taylor Simpson, 2020/02/10
- [RFC PATCH 29/66] Hexagon opcode data structures, Taylor Simpson, 2020/02/10
- [RFC PATCH 17/66] Hexagon arch import - instruction encoding, Taylor Simpson, 2020/02/10