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

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 05:45:02 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?
----------------
Stylie777 wrote:

If thats the case, then we need one here to cater for dyanmically shared loops that are not static in OpenMP versions < 6.0. If you disagree let me know.

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


More information about the llvm-commits mailing list