[clang] [llvm] [openmp] [offload][OpenMP] Re-enable strict modifier for num_threads (PR #163565)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 09:10:28 PDT 2025


================
@@ -277,6 +307,23 @@ __kmpc_parallel_51(IdentTy *ident, int32_t, int32_t if_expr,
     __kmpc_end_sharing_variables();
 }
 
+[[clang::always_inline]] void
+__kmpc_parallel_51(IdentTy *ident, int32_t id, int32_t if_expr,
+                   int32_t num_threads, int proc_bind, void *fn,
+                   void *wrapper_fn, void **args, int64_t nargs) {
+  return __kmpc_parallel_impl(ident, id, if_expr, num_threads, proc_bind, fn,
+                              wrapper_fn, args, nargs);
+}
+
+[[clang::always_inline]] void
+__kmpc_parallel_60(IdentTy *ident, int32_t id, int32_t if_expr,
----------------
jhuber6 wrote:

Wasn't the original issue that OpenMPOpt didn't recognize this anymore? I remember some complaints about the indirection. Not sure we need the old `_51` anymore since we assume no backwards compat in device code.

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


More information about the cfe-commits mailing list