tsan: instrument atomic nand operation
[oota-llvm.git] / lib / Transforms / Instrumentation / ThreadSanitizer.cpp
index d054b5e22fe2849a1d2e476ca9ee97b8f809cd26..cdfaedf47c63d96a6cc8500388310c8deaa2bbe3 100644 (file)
@@ -188,6 +188,8 @@ bool ThreadSanitizer::doInitialization(Module &M) {
         NamePart = "_fetch_or";
       else if (op == AtomicRMWInst::Xor)
         NamePart = "_fetch_xor";
+      else if (op == AtomicRMWInst::Nand)
+        NamePart = "_fetch_nand";
       else
         continue;
       SmallString<32> RMWName("__tsan_atomic" + itostr(BitSize) + NamePart);