Skip to content

Conversation

@vishruth-thimmaiah
Copy link

closes #1794

This PR adds support for the __sync_lock_set_and_set builtin.

This PR adds support for the `__sync_lock_set_and_set` builtin.

Signed-off-by: vishruth-thimmaiah <[email protected]>
@lanza lanza force-pushed the main branch 2 times, most recently from 8acaf96 to 58135ea Compare October 20, 2025 17:19
@vishruth-thimmaiah
Copy link
Author

vishruth-thimmaiah commented Oct 29, 2025

Hey @bcardosolopes, I saw that __sync_swap_* ends up producing the same IR as __sync_lock_test_and_set_*. Would you prefer I include the implementation in this PR or handle it separately?

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.

[CIR][CodeGen][Builtin] sync_lock_test_and_set

2 participants