[llvm] [mlir] [Flang][OpenMP][Taskloop] Translation support for taskloop construct (PR #166903)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 03:53:59 PST 2025


================
@@ -417,7 +441,15 @@ static LogicalResult checkImplementationStatus(Operation &op) {
         checkNowait(op, result);
       })
       .Case([&](omp::TaskloopOp op) {
-        // TODO: Add other clauses check
+        checkAllocate(op, result);
+        checkFinal(op, result);
+        checkGrainsize(op, result);
+        checkIf(op, result);
+        checkInReduction(op, result);
+        checkMergeable(op, result);
+        checkNogroup(op, result);
+        checkNumTasks(op, result);
+        checkReduction(op, result);
----------------
Stylie777 wrote:

It looks like we don't on second looking, my patch, https://github.com/llvm/llvm-project/pull/166791,  to add AST -> FIR support adds the Collapse clause to the `omp.loop_nest` and we already have MLIR -> LLVM IR lowering support for this. Will resolve this comment, apologies!

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


More information about the llvm-commits mailing list