[llvm] [openmp] [OMPT][Offload][OpenMP] Fixes for OMPT data used by libomptarget (PR #156020)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 31 08:20:10 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)
----------------
jprotze wrote:
These macros replace removed global variables. Making them functions will imply changes to all places where the global variables were used.
https://github.com/llvm/llvm-project/pull/156020
More information about the llvm-commits
mailing list