Update comment on AtomicRMWInst::Nand
authorHal Finkel <hfinkel@anl.gov>
Mon, 22 Sep 2014 06:47:10 +0000 (06:47 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 22 Sep 2014 06:47:10 +0000 (06:47 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218236 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Instructions.h

index 9f22eab8cb0fb9f52440165098d4609273125bd8..dcf19e0972d16b261d681e104a78120ee3a70ec9 100644 (file)
@@ -651,7 +651,7 @@ public:
     Sub,
     /// *p = old & v
     And,
-    /// *p = ~old & v
+    /// *p = ~(old & v)
     Nand,
     /// *p = old | v
     Or,