[Mlir-commits] [flang] [llvm] [mlir] [MLIR][OpenMP] Add MLIR Lowering Support for dist_schedule (PR #152736)

Tom Eccles llvmlistbot at llvm.org
Mon Nov 10 08:36:55 PST 2025


================
@@ -5335,6 +5431,7 @@ OpenMPIRBuilder::applyDynamicWorkshareLoop(DebugLoc DL, CanonicalLoopInfo *CLI,
   Builder.CreateCall(DynamicInit,
                      {SrcLoc, ThreadNum, SchedulingType, /* LowerBound */ One,
                       UpperBound, /* step */ One, Chunk});
+  // TODO Do we need a Init call here for if dist_schedule is present?
----------------
tblah wrote:

As of OpenMP 6.0, the only valid `kind` value in `dist_schedule` (and the default) is `static`, so I would assume that we cannot reach dynamically shared loops.

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


More information about the Mlir-commits mailing list