[OpenMP][OMPT] Distinguish different barrier kinds
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 28 Feb 2019 20:55:39 +0000 (20:55 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 28 Feb 2019 20:55:39 +0000 (20:55 +0000)
commitad1ad7ae8be3807202669619dc2d9aa3dc650215
tree5cc4278e3057d941359e0a8b096c61248bf9a6f1
parent12b75594ed86d67b909bf1e6b0429ecdde6a4547
[OpenMP][OMPT] Distinguish different barrier kinds

This change makes the runtime decide the intended use of each barrier
invocation, for the OMPT synchronization tool callbacks.  The OpenMP 5.0
specification defines four possible barrier kinds -- implicit, explicit,
implementation, and just normal barrier.

Patch by Hansang Bae

Differential Revision: https://reviews.llvm.org/D58247

llvm-svn: 355140
openmp/runtime/src/kmp_barrier.cpp
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/src/kmp_wait_release.h
openmp/runtime/src/ompt-specific.cpp
openmp/runtime/src/ompt-specific.h
openmp/runtime/test/ompt/synchronization/barrier/implicit_task_data.c