[Openmp-commits] [clang] [openmp] [OFFLOAD] Build DeviceRTL with SPIRV backend (PR #174675)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 9 12:20:56 PST 2026


================
@@ -131,7 +131,13 @@ struct IdentTy {
 
 using __kmpc_impl_lanemask_t = LaneMaskTy;
 
-using ParallelRegionFnTy = void *;
+#ifdef __SPIRV__
+using FnPtrTy = __attribute__((address_space(ProgramAS))) void *;
+#else
+using FnPtrTy = void *;
+#endif
+
+using ParallelRegionFnTy = FnPtrTy;
----------------
jhuber6 wrote:

C++ style attributes `[[...]]]`.

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


More information about the Openmp-commits mailing list