-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
GH-98831: Implement super-instruction generation #99084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
55816fd
Implement super-instruction generation
gvanrossum 0d746d2
Update NEWS for issue 98831
gvanrossum 7998877
Apply suggestions from CAM's review to NEWS
gvanrossum 9072291
Fix whitespace
gvanrossum b84ee0a
Merge branch 'main' into super-instrs
gvanrossum b5fe9fa
Remove debug print
gvanrossum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 10 additions & 1 deletion
11
Misc/NEWS.d/next/Build/2022-10-28-22-24-26.gh-issue-98831.IXRCRX.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
We have new tooling, in ``Tools/cases_generator``, to generate the interpreter switch from a list of opcode definitions. | ||
We have new tooling, in ``Tools/cases_generator``, | ||
to generate the interpreter switch from a list of opcode definitions. | ||
gvanrossum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This affects only people who are adding or modifying instruction definitions. | ||
gvanrossum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
The instruction definitions now live in ``Python/bytecodes.c``, | ||
in the form of a custom DSL (under development). | ||
gvanrossum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
The tooling reads this file and writes ``Python/generated_cases.c.h``, | ||
which is then included by ``Python/ceval.c`` to provide most of the cases | ||
of the main interpreter switch. | ||
The DSL is described at | ||
https://github.com/faster-cpython/ideas/blob/main/3.12/interpreter_definition.md. | ||
gvanrossum marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.