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

Alex Duran via Openmp-commits openmp-commits at lists.llvm.org
Tue Dec 9 08:38:23 PST 2025


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

we could also have that as an empty #define in the other headers so we wouldn't need an #ifdef here

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


More information about the Openmp-commits mailing list