Generate level 2 hashtables.

All of the level 2 hashtables are concatenated into one constant array per ISA.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-26 17:15:05 -07:00
parent a21935a5a2
commit adde184042
2 changed files with 44 additions and 0 deletions

View File

@@ -191,6 +191,7 @@ def gen_opcodes(groups, fmt):
for g in groups:
for i in g.instructions:
instrs.append(i)
i.number = len(instrs)
# Build a doc comment.
prefix = ', '.join(o.name for o in i.outs)
if prefix: