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

Rename atomic_cas/Compare_and_swap #3491

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

TheNumbat
Copy link
Contributor

Currently, Patomic_cas / %atomic_cas / Compare_and_swap refer to the version of cmpxchg that returns a bool. This is confusing because we also have Compare_exchange, which returns the previous value. This PR renames the former to Patomic_compare_set / %atomic_compare_set / Compare_set, respectively.

@TheNumbat TheNumbat added backend runtime lambda Lambda language changes labels Jan 20, 2025
@TheNumbat TheNumbat requested a review from gretay-js January 20, 2025 20:43
Copy link

Selection Change Check

This PR modifies the original selection pass (targeting Mach).
Please check whether the changes should also be applied to the
CFG variant of the pass.

Base automatically changed from more-int-atomics to main January 21, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend lambda Lambda language changes runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant