[llvm] [mlir] [MLIR][OpenMP] add interchange operation in the OpenMP mlir dialect (PR #186381)

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 19 07:08:55 PDT 2026


================
@@ -3707,6 +3708,30 @@ CanonicalLoopOp::getGenerateesODSOperandIndexAndLength() {
   return getODSOperandIndexAndLength(odsIndex_cli);
 }
 
+// Canonical loop must be perfectly nested, i.e. the body of the parent must
+// only contain the omp.canonical_loop of the nested loops, and
+// omp.terminator
----------------
Meinersbur wrote:

```suggestion
/// Canonical loop must be perfectly nested, i.e. the body of the parent must
/// only contain the omp.canonical_loop of the nested loops, and
/// omp.terminator
```
for visibility in [doxygen.](https://mlir.llvm.org/doxygen/OpenMPDialect_8cpp.html)

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


More information about the llvm-commits mailing list