[clang] [flang] [llvm] [OpenMP] Introduce the initial support for OpenMP kernel language (PR #66844)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 12:10:10 PDT 2025


================
@@ -843,7 +857,8 @@ void CGOpenMPRuntimeGPU::emitTargetOutlinedFunction(
   assert(!ParentName.empty() && "Invalid target region parent name!");
 
   bool Mode = supportsSPMDExecutionMode(CGM.getContext(), D);
-  if (Mode)
+  bool IsBareKernel = D.getSingleClause<OMPXBareClause>();
+  if (Mode || IsBareKernel)
----------------
shiltian wrote:

No. Bare kernel runs in SPMD mode.

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


More information about the llvm-commits mailing list