[Mlir-commits] [llvm] [mlir] [MLIR][OpenMP] Add Taskloop Collapse Support (PR #175924)

Jack Styles llvmlistbot at llvm.org
Wed Jan 14 09:13:22 PST 2026


================
@@ -1494,7 +1494,8 @@ class OpenMPIRBuilder {
       Value *LBVal, Value *UBVal, Value *StepVal, bool Untied = false,
       Value *IfCond = nullptr, Value *GrainSize = nullptr, bool NoGroup = false,
       int Sched = 0, Value *Final = nullptr, bool Mergeable = false,
-      Value *Priority = nullptr, TaskDupCallbackTy DupCB = nullptr,
+      Value *Priority = nullptr, int NumOfCollapseLoops = 0,
----------------
Stylie777 wrote:

Knew I forgot something. Thanks.
I have added the documentation and changed the type to uint64_t, which is the return type of `loopOp.getCollapseNumLoops()`. I have also updated the default value to `1` as that is the return value when collapse is not used

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


More information about the Mlir-commits mailing list