Skip to content

GH-111485: Factor out generation of uop IDs from cases generator. - #112877

Merged
markshannon merged 7 commits into
python:mainfrom
faster-cpython:new-uop-id-generator
Dec 11, 2023
Merged

markshannon merged 7 commits into
python:mainfrom
faster-cpython:new-uop-id-generator

Conversation

@markshannon

@markshannon markshannon commented Dec 8, 2023 •

Copy link
Copy Markdown
Member
Comment thread Tools/cases_generator/generate_cases.py Resolved
Comment thread Include/internal/pycore_uop_ids.h Resolved
out.emit("#ifdef __cplusplus\n")
out.emit("}\n")
out.emit("#endif\n")
out.emit("#endif /* !Py_OPCODE_IDS_H */\n")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This postscript repeats itself in other generated files. Could be generated by a common utility function eventually. Or even a common context manager that adds the opening and closing bits.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that makes sense for the header files.

@markshannon
markshannon merged commit c27e9d5 into python:main Dec 11, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
@markshannon
markshannon deleted the new-uop-id-generator branch August 6, 2024 10:18
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants