gh-128891: add specialized opcodes to opcode.opname (#128892)

This commit is contained in:
Irit Katriel 2025-01-15 21:02:32 +00:00 committed by GitHub
parent 256d6d2131
commit 5eee2fe2b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 4 deletions

View file

@ -17,8 +17,9 @@ from _opcode_metadata import (_specializations, _specialized_opmap, opmap, # no
EXTENDED_ARG = opmap['EXTENDED_ARG']
opname = ['<%r>' % (op,) for op in range(max(opmap.values()) + 1)]
for op, i in opmap.items():
opname[i] = op
for m in (opmap, _specialized_opmap):
for op, i in m.items():
opname[i] = op
cmp_op = ('<', '<=', '==', '!=', '>', '>=')