1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Instrumentation/ThreadSanitizer
Dmitry Vyukov f7ddcb1e80 [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_address_space_attr.ll
tsan_basic.ll
tsan-vs-gvn.ll
unaligned.ll
volatile.ll
vptr_read.ll
vptr_update.ll