[llvm] [mlir] [Offload] Add oneInterationPerThread param to loop device RTL (PR #151959)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 6 05:33:00 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));
----------------
jhuber6 wrote:

I'm surprised this doesn't affect any clang tests.

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


More information about the llvm-commits mailing list