[llvm] [openmp] [OMPT][Offload][OpenMP] Fixes for OMPT data used by libomptarget (PR #156020)
Jan Patrick Lehr via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 11 04:00:44 PST 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:
I mostly wonder what we should prefer moving forward here. I guess I personally would find it cleaner to remove the macros. Though I do not have a strong feeling of whether this should be part of this patch or just as a follow-up.
https://github.com/llvm/llvm-project/pull/156020
More information about the llvm-commits
mailing list