llvm-project/llvm/test/Instrumentation/ThreadSanitizer
Dmitry Vyukov 151ed6aa38 [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
2020-05-15 16:08:44 +02:00
..
atomic-non-integer.ll
atomic.ll
capture.ll
do-not-instrument-memory-access.ll
eh.ll
no_sanitize_thread.ll
read_before_write.ll [TSAN] Add option to allow instrumenting reads of reads-before-writes 2020-05-15 16:08:44 +02:00
read_from_global.ll
sanitize-thread-no-checking.ll
str-nobuiltin.ll
tsan-vs-gvn.ll
tsan_address_space_attr.ll
tsan_basic.ll tsan: don't instrument __attribute__((naked)) functions 2020-04-09 13:47:47 +02:00
unaligned.ll
volatile.ll [TSAN] Add optional support for distinguishing volatiles 2020-04-22 17:27:09 +02:00
vptr_read.ll
vptr_update.ll