[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:44:00 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)
----------------
jplehr wrote:
Can this be done as functions/methods instead of `#defines`?
https://github.com/llvm/llvm-project/pull/156020
More information about the Openmp-commits
mailing list