summaryrefslogtreecommitdiff
path: root/compiler/GHC/Cmm/MachOp.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Cmm/MachOp.hs')
-rw-r--r--compiler/GHC/Cmm/MachOp.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/GHC/Cmm/MachOp.hs b/compiler/GHC/Cmm/MachOp.hs
index b5aa278ad7..7004fece51 100644
--- a/compiler/GHC/Cmm/MachOp.hs
+++ b/compiler/GHC/Cmm/MachOp.hs
@@ -669,9 +669,11 @@ data CallishMachOp
| MO_AtomicRMW Width AtomicMachOp
| MO_AtomicRead Width
| MO_AtomicWrite Width
+ -- | Atomic compare-and-swap. Arguments are @[dest, expected, new]@.
+ -- Sequentially consistent.
+ -- Possible future refactoring: should this be an'MO_AtomicRMW' variant?
| MO_Cmpxchg Width
- -- Should be an AtomicRMW variant eventually.
- -- Sequential consistent.
+ -- | Atomic swap. Arguments are @[dest, new]@
| MO_Xchg Width
-- These rts provided functions are special: suspendThread releases the