[OpenMP] Remove TSAN annotations from libomp
authorJoachim Protze <protze@itc.rwth-aachen.de>
Fri, 4 Jun 2021 12:05:05 +0000 (14:05 +0200)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Mon, 12 Jul 2021 16:49:11 +0000 (18:49 +0200)
commit681055ea694b1de21a52b319329e5d4f9b1b807d
tree2ce509ecf9259913874869cd26080cec76439b1d
parent88b73a980ff28fc7123df1e857b5c4dda4a62a5a
[OpenMP] Remove TSAN annotations from libomp

The annotations in libomp were never built by default. The annotations are
also superseded by the annotations which the OMPT tool libarcher.so provides.
With respect to libarcher, libomp behaves as if libarcher would be the last
element of OMP_TOOL_LIBARARIES. I.e., if no other OMPT tool gets active,
libarcher will check if an OpenMP application is built with TSan.

Since libarcher gets loaded by default, enabling LIBOMP_TSAN_SUPPORT would
result in redundant annotations for TSan, which slightly differ in details
and coverage (e.g. task dependencies are not handled well by the annotations
in libomp).

This patch removes all TSan annotations from the OpenMP runtime code.

Differential Revision: https://reviews.llvm.org/D103767
openmp/runtime/CMakeLists.txt
openmp/runtime/src/CMakeLists.txt
openmp/runtime/src/exports_so.txt
openmp/runtime/src/kmp_barrier.cpp
openmp/runtime/src/kmp_config.h.cmake
openmp/runtime/src/kmp_lock.cpp
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_tasking.cpp
openmp/runtime/src/tsan_annotations.cpp [deleted file]
openmp/runtime/src/tsan_annotations.h [deleted file]
openmp/runtime/src/z_Linux_util.cpp