]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109287: Desugar inst(X) to op(X); macro(X) = X (#109294)
authorGuido van Rossum <guido@python.org>
Fri, 15 Sep 2023 15:39:05 +0000 (08:39 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Sep 2023 15:39:05 +0000 (08:39 -0700)
commita7a079798d1c3542ecbb041a868429d515639e35
treeef391bd0e77cdc27a4a36718613b4884b8e4feaa
parent47af18859385fd996bf7f8fa4b33600c59a6d626
gh-109287: Desugar inst(X) to op(X); macro(X) = X (#109294)

This makes the internal representation in the code generator simpler: there's a list of ops, and a list of macros, and there's no special-casing needed for ops that aren't macros. (There's now special-casing for ops that are also macros, but that's simpler.)
Include/internal/pycore_opcode_metadata.h
Tools/cases_generator/analysis.py
Tools/cases_generator/generate_cases.py
Tools/cases_generator/instructions.py
Tools/cases_generator/stacking.py