[Mlir-commits] [clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

Dominik Adamski llvmlistbot at llvm.org
Wed Sep 10 07:11:26 PDT 2025


================
@@ -5003,16 +5003,17 @@ static void createTargetLoopWorkshareCall(OpenMPIRBuilder *OMPBuilder,
   RealArgs.push_back(ConstantInt::get(TripCountTy, 0));
   if (LoopType == WorksharingLoopType::DistributeForStaticLoop) {
     RealArgs.push_back(ConstantInt::get(TripCountTy, 0));
-  }
-  RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), 0));
+    RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), NoLoop));
+  } else
+    RealArgs.push_back(ConstantInt::get(Builder.getInt8Ty(), 0));
----------------
DominikAdamski wrote:

Done

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


More information about the Mlir-commits mailing list