[Openmp-commits] [llvm] [openmp] [OMPT][Offload][OpenMP] Fixes for OMPT data used by libomptarget (PR #156020)
Jan Patrick Lehr via Openmp-commits
openmp-commits at lists.llvm.org
Thu Oct 30 03:43:58 PDT 2025
================
@@ -25,12 +25,22 @@
#define OMPT_IF_BUILT(stmt) stmt
+#define TargetTaskData \
+ ((OmptTaskInfoPtr == &OmptTaskInfo) ? nullptr \
+ : (&(OmptTaskInfoPtr->task_data)))
+#define TargetData (OmptTaskInfoPtr->target_data)
+
+typedef struct ompt_task_info_t {
----------------
jplehr wrote:
Is this struct copied from libomp? If so, we should have a comment here.
https://github.com/llvm/llvm-project/pull/156020
More information about the Openmp-commits
mailing list