Skip to content

Add atomic ordering param to memop - #257

Merged
tlively merged 1 commit into
WebAssembly:mainfrom
stevenfontanella:ordering
Jul 30, 2026
Merged

Add atomic ordering param to memop#257
tlively merged 1 commit into
WebAssembly:mainfrom
stevenfontanella:ordering

Conversation

@stevenfontanella

@stevenfontanella stevenfontanella commented Jul 30, 2026

Copy link
Copy Markdown
Member

For use in the relaxed atomics proposal, e.g. WebAssembly/relaxed-atomics#5 (based on top of this PR). This allows us to introduce more orderings (e.g. acqrel, and potentially others) to atomic instructions.

Keeping the ordering in the memop record allows us to avoid introducing a second atomicmemop record and duplicating several functions that use memop e.g. in decode.ml, encode.ml, arrange.ml, and valid.ml.

@stevenfontanella
stevenfontanella marked this pull request as ready for review July 30, 2026 18:07
@stevenfontanella

Copy link
Copy Markdown
Member Author

cc @conrad-watt and @rossberg for review since I can't assign a reviewer myself. Can one of you help take a look? For context, this refactoring is to enable the code changes for the relaxed atomics proposal. I'm looking to get the spec interpreter working for it before we try for a phase 3 vote.

@rossberg rossberg 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.

LGTM

(Note: I'm on vacation from tomorrow onwards, so won't be able to do more code reviews in a while.)

@stevenfontanella

Copy link
Copy Markdown
Member Author

Thanks! I don't have permission to merge, can you merge this?

@tlively
tlively merged commit cc535ad into WebAssembly:main Jul 30, 2026
1 check passed
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