[Mlir-commits] [clang] [flang] [llvm] [mlir] [OpenMP] Add no-loop SPMD kernel emission to Clang (PR #205325)

Nicole Aschenbrenner llvmlistbot at llvm.org
Mon Aug 31 06:19:49 PDT 2026


================
@@ -1140,6 +1145,17 @@ bool CGOpenMPRuntimeGPU::isDelayedVariableLengthDecl(CodeGenFunction &CGF,
   return llvm::is_contained(I->getSecond().DelayedVariableLengthDecls, VD);
 }
 
+bool CGOpenMPRuntimeGPU::canPromoteToNoLoop(
+    const OMPExecutableDirective &D) const {
+  OpenMPDirectiveKind DKind = D.getDirectiveKind();
----------------
nicebert wrote:

It wouldn't change anything here. It only touches the loop construct, mapping it through its bind clause to for, distribute or simd, so it can never produce the two kinds this checks for. It's also file-local to CGStmtOpenMP.cpp, so this file can't call it.

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


More information about the Mlir-commits mailing list