[flang-commits] [flang] [flang][OpenMP] Set the default schedule modifier (PR #139572)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Wed May 14 06:58:41 PDT 2025
kiranchandramohan wrote:
My preference is for this to be handled in the translation from OpenMP dialect to LLVM IR or in the OpenMP IRBuilder. The best case is when the OpenMP dialect models what is in the standard. So a user of the dialect might think that if they do not specify the static scheduling or ordered clause the `omp.wsloop` will be lowered to code with nonmonotonic scheduler.
Does that sound OK?
BTW, the call the `applyWorkshare` seems to be checking for monotonic, nonmonotonic etc. Will that be affected?
https://github.com/llvm/llvm-project/blob/7a9fd62278a2eab8160fa476c3a64e66786f99ad/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp#L2436
Also, does the runtime assume a default behaviour? Or is it for the user to generate appropriate calls to the runtime with the right scheduling modifier value?
https://github.com/llvm/llvm-project/pull/139572
More information about the flang-commits
mailing list