[llvm] r310533 - LangRef: Fix/improve cmpxchg wording

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 15:22:04 PDT 2017


Author: matze
Date: Wed Aug  9 15:22:04 2017
New Revision: 310533

URL: http://llvm.org/viewvc/llvm-project?rev=310533&view=rev
Log:
LangRef: Fix/improve cmpxchg wording

Modified:
    llvm/trunk/docs/LangRef.rst

Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=310533&r1=310532&r2=310533&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Wed Aug  9 15:22:04 2017
@@ -7704,9 +7704,9 @@ Semantics:
 """"""""""
 
 The contents of memory at the location specified by the '``<pointer>``' operand
-is read and compared to '``<cmp>``'; if the read value is the equal, the
-'``<new>``' is written. The original value at the location is returned, together
-with a flag indicating success (true) or failure (false).
+is read and compared to '``<cmp>``'; if the values are equal, '``<new>``' is
+written to the location. The original value at the location is returned,
+together with a flag indicating success (true) or failure (false).
 
 If the cmpxchg operation is marked as ``weak`` then a spurious failure is
 permitted: the operation may not write ``<new>`` even if the comparison




More information about the llvm-commits mailing list