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

Robert Imschweiler via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 10:05:12 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,
----------------
ro-i wrote:

Not without further ado, that's why I had introduced the wrappers as a workaround, see https://github.com/llvm/llvm-project/pull/156104

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


More information about the cfe-commits mailing list