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

Prototype i32x4.widen_i8x16_{s,u} #3535

Merged
merged 1 commit into from
Feb 2, 2021
Merged

Prototype i32x4.widen_i8x16_{s,u} #3535

merged 1 commit into from
Feb 2, 2021

Conversation

tlively
Copy link
Member

@tlively tlively commented Feb 1, 2021

As proposed in WebAssembly/simd#395. Note that the other
instructions in the proposal have not been implemented in LLVM or in V8, so
there is no need to implement them in Binaryen right now either. This PR
introduces a new expression class for the new instructions because they uniquely
take an immediate argument identifying which portion of the input vector to
widen.

As proposed in WebAssembly/simd#395. Note that the other
instructions in the proposal have not been implemented in LLVM or in V8, so
there is no need to implement them in Binaryen right now either. This PR
introduces a new expression class for the new instructions because they uniquely
take an immediate argument identifying which portion of the input vector to
widen.
@tlively tlively requested a review from kripken February 1, 2021 23:40
@tlively tlively enabled auto-merge (squash) February 1, 2021 23:40
@tlively
Copy link
Member Author

tlively commented Feb 1, 2021

cc @omnisip.

@kripken, I enabled auto-merge on the PR, so make sure to disable first it if you want to LGTM+nits.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm % comments

curr->vec = popNonVoidExpression();
curr->finalize();
out = curr;
return true;
Copy link
Member

Choose a reason for hiding this comment

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

please use a Builder and call the method on there.

ret->vec = parseExpression(s[2]);
ret->finalize();
return ret;
}
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@tlively tlively merged commit b5c2875 into WebAssembly:main Feb 2, 2021
@tlively tlively deleted the main branch February 2, 2021 00:53
@kripken
Copy link
Member

kripken commented Feb 2, 2021

Heh, I did not read the later comment and so it did an auto-merge... anyhow, my comments were not urgent.

@omnisip
Copy link

omnisip commented Feb 2, 2021

What do I need to do to test this with emscripten and clang?

@kripken
Copy link
Member

kripken commented Feb 2, 2021

In a few hours there should be a new tip of tree build with this included. You can then do emsdk install tot to get it.

Or, you can build binaryen manually and point emscripten to that location by editing the .emscripten config file.

@omnisip
Copy link

omnisip commented Feb 2, 2021

Okay cool! Will let you guys know how it goes.

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.

3 participants