Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[analysis] Make it easier to implement a transfer function - #6077

#6077
Merged
tlively merged 1 commit into
mainWebAssembly/binaryen:mainfrom
simplify-txfnWebAssembly/binaryen:simplify-txfnCopy head branch name to clipboard
Nov 2, 2023
Merged

[analysis] Make it easier to implement a transfer function#6077
tlively merged 1 commit into
mainWebAssembly/binaryen:mainfrom
simplify-txfnWebAssembly/binaryen:simplify-txfnCopy head branch name to clipboard

Conversation

@tlively

@tlively tlively commented Nov 2, 2023

Copy link
Copy Markdown
Member

Combine the transfer and getDependents methods of a transfer function so
that a transfer function only has to implement transfer, which now returns a
range of basic blocks that may need to be re-analyzed.

To make it easier to implement the returned basic block range, change the
requirement so that it provides iterators to const BasicBlock* rather than
BasicBlock. This allows us to entirely remove cfg-impl.h.

Combine the `transfer` and `getDependents` methods of a transfer function so
that a transfer function only has to implement `transfer`, which now returns a
range of basic blocks that may need to be re-analyzed.

To make it easier to implement the returned basic block range, change the
requirement so that it provides iterators to `const BasicBlock*` rather than
`BasicBlock`. This allows us to entirely remove cfg-impl.h.
@tlively
tlively requested review from ashleynh and kripken November 2, 2023 18:49
@tlively

tlively commented Nov 2, 2023

Copy link
Copy Markdown
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@tlively
tlively merged commit 4fba26a into main Nov 2, 2023
@tlively
tlively deleted the simplify-txfn branch November 2, 2023 20:50
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
…ly#6077)

Combine the `transfer` and `getDependents` methods of a transfer function so
that a transfer function only has to implement `transfer`, which now returns a
range of basic blocks that may need to be re-analyzed.

To make it easier to implement the returned basic block range, change the
requirement so that it provides iterators to `const BasicBlock*` rather than
`BasicBlock`. This allows us to entirely remove cfg-impl.h.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.