This patch updates the implementation of OMPT to the specification in the upcoming OpenMP 5.0 version.
Half of the touched code adds test cases to test the various OMPT event callbacks. The code is tested to work with latest clang, GNU and Intel compiler. The implementation is optimized for low overhead when no tool is attached shifting the cost to execution with tool attached.
The code is developed in:
https://github.com/OpenMPToolsInterface/LLVM-openmp
The diff can also be viewed at:
https://github.com/OpenMPToolsInterface/LLVM-openmp/pull/2/files
Nit: This commit id is probably in the fork.