Lists all the attributes associated with each instruction
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
---
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 107e1e8..499f0e0 100755
--- a/target/hexagon/do_qemu.py
+++ b/target/hexagon/do_qemu.py
@@ -793,3 +793,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, ','.join(sorted(attribdict[tag]))))
+realf = open('op_attribs_generated.h', 'wt')
+realf.write(f.getvalue())
+realf.close()
+f.close()
+
--
2.7.4