[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

Kevin Sala Penades via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Aug 9 22:59:38 PDT 2025


================
@@ -4515,6 +4515,15 @@ void omp_free(void *ptr, omp_allocator_handle_t allocator) {
 }
 /* end of OpenMP 5.1 Memory Management routines */
 
+void *omp_get_dyn_groupprivate_ptr(size_t offset, int *is_fallback,
+                                   omp_access_t access_group) {
+  if (is_fallback != NULL)
----------------
kevinsala wrote:

This interface was discussed in the OpenMP language committe, and it's the version that was accepted. Having an optional out argument, we can pass nullptr, or no parameter in the C++ and Fortran versions.

https://github.com/llvm/llvm-project/pull/152831


More information about the llvm-branch-commits mailing list