[llvm] [mlir] [Offload] Add oneInterationPerThread param to loop device RTL (PR #151959)
Sergio Afonso via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 06:22:13 PDT 2025
================
@@ -4549,6 +4549,7 @@ static void createTargetLoopWorkshareCall(OpenMPIRBuilder *OMPBuilder,
RealArgs.push_back(LoopBodyArg);
RealArgs.push_back(TripCount);
if (LoopType == WorksharingLoopType::DistributeStaticLoop) {
+ RealArgs.push_back(ConstantInt::get(TripCountTy, 0));
----------------
skatrak wrote:
The DeviceRTL functions updated by this patch are only used by Flang through the OMPIRBuilder at the moment, and there are no code paths in Clang that would result in calling these. I seem to remember @jdoerfert was working on / thinking about getting Clang to use them as well some time ago, but that's not yet upstream AFAICT.
https://github.com/llvm/llvm-project/pull/151959
More information about the llvm-commits
mailing list