[llvm] [IR] Add storermw instruction (PR #207048)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 06:22:37 PDT 2026


================
@@ -118,9 +118,9 @@ ordering; see {ref}`Atomic orderings`.
 non-atomic loads and stores, but provide additional guarantees in situations
 where threads and signals are involved.
 
-`cmpxchg` and `atomicrmw` are essentially like an atomic load followed by an
-atomic store (where the store is conditional for `cmpxchg`), but no other
-memory operation can happen on any thread between the load and store.
+`cmpxchg`, `atomicrmw`, and `storermw` are essentially like an atomic load
+followed by an atomic store (where the store is conditional for `cmpxchg`),
----------------
gonzalobg wrote:

The entire sentence is: 

>`cmpxchg`, `atomicrmw` and `storermw` are essentially like an atomic load followed by an atomic store (where the store is conditional for `cmpxchg`), but no other memory operation can happen on any thread between the load and store.

This sentence just:
- defines the semantics of read-modify-write operations (no other op between load and store)
- lists some operations that are read-modify-write operations: `cmpxchg`, `atomicrmw`, `storermw`.

It doesn't say anything about "acquire" anywhere (the meaning of acquire is defined elsewhere).

https://github.com/llvm/llvm-project/pull/207048


More information about the llvm-commits mailing list