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

Tom Eccles llvmlistbot at llvm.org
Thu Mar 19 04:42:02 PDT 2026


================
@@ -1434,6 +1433,20 @@ class OpenMPIRBuilder {
   /// \param Loop The loop to unroll. The loop will be invalidated.
   LLVM_ABI void unrollLoopFull(DebugLoc DL, CanonicalLoopInfo *Loop);
 
+  /// Interchange the order of the nested loops.
+  ///
+  /// @param DL          Debug location for instructions added by interchange.
+  /// @param Loops       Loops affected by loop interchange. The
+  /// CanonicalLoopInfo objects are invalidated by this method, i.e. should not
+  /// used after interchange.
----------------
tblah wrote:

nit
```suggestion
  /// be used after interchange.
```

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


More information about the Mlir-commits mailing list