FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-93008: refactor compiler functions that add instructions to take only a basicblock* (not the whole compiler) by iritkatriel · Pull Request #93009 · python/cpython · GitHub

/ cpython Public

gh-93008: refactor compiler functions that add instructions to take only a basicblock* (not the whole compiler) - #93009

Merged
iritkatriel merged 4 commits into
python:mainfrom
iritkatriel:add_to_block
May 29, 2022
Merged

gh-93008: refactor compiler functions that add instructions to take only a basicblock* (not the whole compiler)#93009
iritkatriel merged 4 commits into
python:mainfrom
iritkatriel:add_to_block

Conversation

iritkatriel commented May 20, 2022
edited
Loading

Copy link
Copy Markdown
Member

This makes these functions available for use in the optimiser and assembler, when it is necessary to change basic blocks.

Closes #93008.

…ler_use_new_implicit_block_if_needed insted (for the last instr in the block)
…block rather than taking a compiler struct ptr. Rename them to basicblock_add_*
iritkatriel requested a review from markshannon as a code owner May 20, 2022 11:08
iritkatriel added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label May 20, 2022
iritkatriel requested a review from sweeneyde May 20, 2022 11:11

sweeneyde left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks correct and makes things a bit more flexible.

Out of interest, what are the use-cases for adding instructions at assembly time?

Copy link
Copy Markdown
Member Author

Looks correct and makes things a bit more flexible.

Out of interest, what are the use-cases for adding instructions at assembly time?

Thanks. I need to do this here line 7465.

Copy link
Copy Markdown
Member

Looks good.

1 similar comment

Copy link
Copy Markdown
Member

Looks good.

iritkatriel merged commit ace6607 into python:main May 29, 2022
iritkatriel deleted the add_to_block branch October 18, 2022 14:24
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interpreter-core (Objects, Python, Grammar, and Parser dirs) skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor compiler so that the low level code generation functions operate on a basicblock*

4 participants


Back | FazBrowse Home | New Git URL