From c264b2f6930c275a16bd53bfbd44693d453f0f58 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 24 Aug 2011 20:28:39 +0000 Subject: [PATCH] Some minor updates to atomic acquire/release docs in LangRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138472 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index cac0272769d..2b9ee24bf41 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -1634,14 +1634,15 @@ address is written monotonically by one thread, and other threads eventually see the write. This corresponds to the C++0x/C1x memory_order_relaxed.
acquire
-
In addition to the guarantees of monotonic, if this operation -reads a value written by a release atomic operation, it -synchronizes-with that operation. This corresponds to the C++0x/C1x -memory_order_acquire.
-
release
In addition to the guarantees of monotonic, -a synchronizes-with edge may be formed with an acquire -operation. This is intended to model C++'s memory_order_release.
+a synchronizes-with edge may be formed with a release +operation. This is intended to model C++'s memory_order_acquire. +
release
+
In addition to the guarantees of monotonic, if this operation +writes a value which is subsequently read by an acquire operation, +it synchronizes-with that operation. (This isn't a complete +description; see the C++0x definition of a release sequence.) This corresponds +to the C++0x/C1x memory_order_release.
acq_rel (acquire+release)
Acts as both an acquire and release operation on its address. This corresponds to the C++0x/C1x memory_order_acq_rel.