Add convenient composed tsan constants
authorMartijn Vels <mvels@google.com>
Thu, 15 Apr 2021 07:03:05 +0000 (09:03 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 15 Apr 2021 08:25:41 +0000 (10:25 +0200)
commit3c23807569f0c5ff8fe5ef64c5e51f4e3e33dd03
tree8babc965c301a8fcf749bba9ccb01b4000c991f8
parent5144f730a8a8a4c7c7984ff945187a9aa83c91ac
Add convenient composed tsan constants

This change adds convenient composed constants to be used for tsan_read_try_lock annotations, reducing the boilerplate at the instrumentation site.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D99595
compiler-rt/include/sanitizer/tsan_interface.h