8000 gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py by iritkatriel · Pull Request #107971 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py #107971

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 18 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename function
  • Loading branch information
iritkatriel committed Aug 15, 2023
commit 99a408be6beca1a1ba1daf8ac216b6db67a2488b
4 changes: 2 additions & 2 deletions Tools/cases_generator/generate_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def write_provenance_header(self):
self.out.write_raw(self.from_source_files())
self.out.write_raw(f"{self.out.comment} Do not edit!\n")

def assign_op_ids(self):
def assign_opcode_ids(self):
"""Assign IDs to opcodes"""

ops: list[(bool, str)] = [] # (has_arg, name) for each opcode
Expand Down Expand Up @@ -820,7 +820,7 @@ def main():
# These raise OSError if output can't be written
a.write_instructions(args.output, args.emit_line_directives)

a.assign_op_ids()
a.assign_opcode_ids()
a.write_opcode_ids(args.opcode_ids_h, args.opcode_targets_h)
a.write_metadata(args.metadata, args.pymetadata)
a.write_executor_instructions(args.executor_cases, args.emit_line_directives)
Expand Down
0