diff options
author | Dhruva Chakrabarti <Dhruva.Chakrabarti@amd.com> | 2022-06-17 16:05:39 -0700 |
---|---|---|
committer | Dhruva Chakrabarti <Dhruva.Chakrabarti@amd.com> | 2022-10-31 10:33:23 -0700 |
commit | f94c2679cb1db92ce4103487bf0247eca6e4d722 (patch) | |
tree | c63504f49dd3e11af9e946f61d9d19c23082600e /clang/lib/Frontend/ASTMerge.cpp | |
parent | 06f640d3fb060e2e9cfed1d7c44636c7ffe3308b (diff) | |
download | llvm-f94c2679cb1db92ce4103487bf0247eca6e4d722.zip llvm-f94c2679cb1db92ce4103487bf0247eca6e4d722.tar.gz llvm-f94c2679cb1db92ce4103487bf0247eca6e4d722.tar.bz2 |
[OpenMP] [OMPT] [2/8] Implemented a connector for communication of OMPT callbacks between libraries.
This is part of a set of patches implementing OMPT target callback support and has been split out of the originally submitted https://reviews.llvm.org/D113728. The overall design can be found in https://rice.app.box.com/s/pf3gix2hs4d4o1aatwir1set05xmjljc
The purpose of this patch is to provide a way to register tool-provided callbacks into libomp when libomptarget is loaded.
Introduced a cmake variable LIBOMPTARGET_OMPT_SUPPORT that can be used to control OMPT target support. It follows host OMPT support, controlled by LIBOMP_HAVE_OMPT_SUPPORT.
Added a connector that can be used to communicate between OMPT implementations in libomp and libomptarget or libomptarget and a plugin.
Added a global constructor in libomptarget that uses the connector to force registration of tool-provided callbacks in libomp. A pair of init and fini functions are provided to libomp as part of the connect process which will be used to register the tool-provided callbacks in libomptarget.
Depends on D123429
Patch from John Mellor-Crummey <johnmc@rice.edu>
(With contributions from Dhruva Chakrabarti <Dhruva.Chakrabarti@amd.com>)
Reviewed By: dreachem
Differential Revision: https://reviews.llvm.org/D123572
Diffstat (limited to 'clang/lib/Frontend/ASTMerge.cpp')
0 files changed, 0 insertions, 0 deletions