projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tsan: instrument atomic nand operation
[oota-llvm.git]
/
lib
/
Transforms
/
Instrumentation
/
ThreadSanitizer.cpp
diff --git
a/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
b/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
index d054b5e22fe2849a1d2e476ca9ee97b8f809cd26..cdfaedf47c63d96a6cc8500388310c8deaa2bbe3 100644
(file)
--- a/
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
+++ b/
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
@@
-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);