tsan: support __ATOMIC_HLE_ACQUIRE/RELEASE flags
authorDmitry Vyukov <dvyukov@google.com>
Tue, 21 Mar 2017 14:28:55 +0000 (14:28 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 21 Mar 2017 14:28:55 +0000 (14:28 +0000)
commitde033e6cdbf10b979c65229fe5626572a3a8735d
tree0c63a667a133ef862daec6d159dba9264e094d6a
parent00ece756c32f35afa70421479635a679e0947697
tsan: support __ATOMIC_HLE_ACQUIRE/RELEASE flags

HLE flags can be combined with memory order in atomic operations.
Currently tsan runtime crashes on e.g. IsStoreOrder(mo) in atomic store
if any of these additional flags are specified.

Filter these flags out.
See the comment as to why it is safe.

llvm-svn: 298378
compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cc
compiler-rt/test/tsan/atomic_hle.cc [new file with mode: 0644]