transpile: Support __atomic_thread_fence/__atomic_signal_fence builtins#1862
Merged
Conversation
ahomescu
requested changes
Jun 18, 2026
ahomescu
reviewed
Jun 18, 2026
1a8ba84 to
806f076
Compare
ahomescu
approved these changes
Jun 19, 2026
806f076 to
d3fef4f
Compare
7fc752f to
b8781e0
Compare
fw-immunant
approved these changes
Jul 1, 2026
fw-immunant
left a comment
Contributor
There was a problem hiding this comment.
A couple inline comments, no blocking concerns.
…iltins Map them to the `atomic_fence`/`atomic_singlethreadfence` intrinsics using the call's memory order. The order must be a constant (a non-constant one fails translation); a relaxed fence is emitted as a no-op since Rust has no relaxed fence intrinsic.
d3fef4f to
f8f00b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Needed to land #1861.