Skip to content

[DRAFT] Add support for C26 atomic reductions#985

Open
ThomasHaas wants to merge 2 commits intodevelopmentfrom
atomic-modify-write
Open

[DRAFT] Add support for C26 atomic reductions#985
ThomasHaas wants to merge 2 commits intodevelopmentfrom
atomic-modify-write

Conversation

@ThomasHaas
Copy link
Collaborator

  • I added a header c26.h with the new atomic reduction operations of C26.
  • I implemented all of them except min and max
  • There is also some support for C litmus style versions. @hernan-poncedeleon added them and I don't know how well they work right now.

These atomics generate a rmw-pair of events just like a standard fetch_op atomic, but add the Noreturn tag to both of them (naming follows LKMM's non-returning atomics).
There is no compilation scheme to hardware targets yet, so code has to be verified with --target=c11 (default).

What needs to be done is to relax the memory models of interest: right now atomic_op and atomic_fetch_op provide the same synchronization semantics.

hernan-poncedeleon and others added 2 commits February 12, 2026 15:16
Implemented first support for atomic reduction ops (only for C-code yet).
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.

2 participants