[Openmp-commits] [openmp] [OpenMP][OMPT] Add ompt_set_frame_enter support to libomptarget (PR #201127)
Jan Patrick Lehr via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jun 2 12:53:20 PDT 2026
================
@@ -24,6 +24,16 @@
((x == fork_context_gnu) ? ompt_parallel_invoker_program \
: ompt_parallel_invoker_runtime)
+#define OMPT_FRAME_SET(frame, which, ptr_value, flags) \
+ { \
+ frame->which##_frame.ptr = ptr_value; \
+ frame->which##_frame_flags = flags; \
+ }
+
+#define OMPT_FRAME_CLEAR(frame, which) OMPT_FRAME_SET(frame, which, 0, 0)
----------------
jplehr wrote:
It's a bit odd. I re-checked the downstream implementation and was surprised that this is not used there either. We only expose it as an available callback to a tool.
If I remove it too, compiler still builds, tests still pass. I would thus go ahead and remove it too for now.
https://github.com/llvm/llvm-project/pull/201127
More information about the Openmp-commits
mailing list