Skip to content
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

[Parser] Parse call and return_call #6086

Merged
merged 2 commits into from
Nov 8, 2023
Merged

[Parser] Parse call and return_call #6086

merged 2 commits into from
Nov 8, 2023

Conversation

tlively
Copy link
Member

@tlively tlively commented Nov 7, 2023

To support parsing calls, add support for parsing function indices and building
calls with IRBuilder.

To support parsing calls, add support for parsing function indices and building
calls with IRBuilder.
@tlively tlively requested a review from ashleynh November 7, 2023 22:21
@tlively
Copy link
Member Author

tlively commented Nov 7, 2023

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@@ -546,7 +557,14 @@ Result<> IRBuilder::makeBreak(Index label) {

// Result<> IRBuilder::makeSwitch() {}

// Result<> IRBuilder::makeCall() {}
Result<> IRBuilder::makeCall(Name func, bool isReturn) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add a comment documenting that makeCall is a departure from the wasm-builder.h makeCall, in that there is an assumption the Function already exists before creating the call to it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can do 👍

@tlively tlively enabled auto-merge (squash) November 7, 2023 23:34
@tlively tlively disabled auto-merge November 8, 2023 01:04
@tlively tlively merged commit 3640f9c into main Nov 8, 2023
13 of 14 checks passed
@tlively tlively deleted the parser-call branch November 8, 2023 01:04
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
To support parsing calls, add support for parsing function indices and building
calls with IRBuilder.
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