diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2020-05-15 14:14:18 +0200 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-15 16:08:44 +0200 |
commit | 151ed6aa38a3ec6c01973b35f684586b6e1c0f7e (patch) | |
tree | 48a09a2aa50948a6f4fe8951c2722b10f00d1232 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | fb1c55b57dda134866803bdf3cdda2cc57a7dc5c (diff) | |
download | llvm-151ed6aa38a3ec6c01973b35f684586b6e1c0f7e.zip llvm-151ed6aa38a3ec6c01973b35f684586b6e1c0f7e.tar.gz llvm-151ed6aa38a3ec6c01973b35f684586b6e1c0f7e.tar.bz2 |
[TSAN] Add option to allow instrumenting reads of reads-before-writes
Add -tsan-instrument-read-before-write which allows instrumenting reads
of reads-before-writes.
This is required for KCSAN [1], where under certain configurations plain
writes behave differently (e.g. aligned writes up to word size may be
treated as atomic). In order to avoid missing potential data races due
to plain RMW operations ("x++" etc.), we will require instrumenting
reads of reads-before-writes.
[1] https://github.com/google/ktsan/wiki/KCSAN
Author: melver (Marco Elver)
Reviewed-in: https://reviews.llvm.org/D79983
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions