saulecabrera opened PR #10053 from saulecabrera:winch-improve-extend-kinds
to bytecodealliance:main
:
Some instructions, like the atomic ones, part of the threads proposal, we want to ensure through the type system that only supported extend kinds are passed, that way the emission layer can ignore the extend kind validation at runtime.
This commit divides the existing
ExtendKind
enum into the signed and unsigned variants, making the definition more amenable to atomic operations.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
saulecabrera requested wasmtime-compiler-reviewers for a review on PR #10053.
saulecabrera requested abrown for a review on PR #10053.
github-actions[bot] commented on PR #10053:
Subscribe to Label Action
cc @saulecabrera
<details>
This issue or pull request has been labeled: "winch"Thus the following users have been cc'd because of the following labels:
- saulecabrera: winch
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
abrown submitted PR review:
@saulecabrera, this makes sense to me. I suspect one additional readability may be to add
From
implementations to avoid having to wrap up theSigned|UnsignedExtend
instances insideExtendKind
in so many places. (Something likeimpl From<SignedExtend> for ExtendKind
and perhaps evenfn extend(..., impl Into<ExtendKind>)
). But it's up to you whether you want to pursue that refactoring; this is also fine as-is.
saulecabrera updated PR #10053.
saulecabrera commented on PR #10053:
Thanks for the suggestion @abrown, when with implementing conversions from
{Signed|Unsigned}Extend
->ExtendKind
saulecabrera updated PR #10053.
saulecabrera edited a comment on PR #10053:
Thanks for the suggestion @abrown, went with implementing conversions from
{Signed|Unsigned}Extend
->ExtendKind
saulecabrera has enabled auto merge for PR #10053.
saulecabrera commented on PR #10053:
Hmm the failure is related to
cargo vet
.
alexcrichton merged PR #10053.
Last updated: Jan 24 2025 at 00:11 UTC