[llvm] r218236 - Update comment on AtomicRMWInst::Nand

Hal Finkel hfinkel at anl.gov
Sun Sep 21 23:47:10 PDT 2014


Author: hfinkel
Date: Mon Sep 22 01:47:10 2014
New Revision: 218236

URL: http://llvm.org/viewvc/llvm-project?rev=218236&view=rev
Log:
Update comment on AtomicRMWInst::Nand

As of July 2014, all backends have been updated to implement
AtomicRMWInst::Nand as ~(x & y) (and not as x & ~y, as some did previously).
This was added to the release notes in r212635 (and the LangRef had been
changed), but it seems that we forgot to update the header-file description.

Modified:
    llvm/trunk/include/llvm/IR/Instructions.h

Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=218236&r1=218235&r2=218236&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Mon Sep 22 01:47:10 2014
@@ -651,7 +651,7 @@ public:
     Sub,
     /// *p = old & v
     And,
-    /// *p = ~old & v
+    /// *p = ~(old & v)
     Nand,
     /// *p = old | v
     Or,





More information about the llvm-commits mailing list