[OpenMP][Tool] Improving stack trace for Archer
authorJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 14 Jan 2020 08:12:48 +0000 (22:12 -1000)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 14 Jan 2020 08:14:06 +0000 (22:14 -1000)
commited810da73270267082c347bc2919eebb7978a2fe
tree7bc5ba529bea4ce04378e5a372cb88e0ed1498a1
parentd9819f366233e53427d0929729a58f85dc748cfb
[OpenMP][Tool] Improving stack trace for Archer

The OpenMP runtime is not instrumented, so entering the runtime leaves no hint
on the source line of the pragma on ThreadSanitizer's function stack.

This patch adds function entry/exit annotations for OpenMP parallel regions,
and synchronization regions (barrier, taskwait, taskgroup).

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D70408
openmp/tools/archer/ompt-tsan.cpp