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

Michael Kruse llvmlistbot at llvm.org
Thu Mar 19 07:08:54 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.
----------------
Meinersbur wrote:

```suggestion
  /// @param Loops       Loops affected by loop interchange. The
  ///                    CanonicalLoopInfo objects are invalidated by this method, i.e. should not be used after interchange.
```
Consider nicer idention. When running clang-format, it will use the same indention as the overlong line when wrapping, so you only need to indent the first line manually

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


More information about the Mlir-commits mailing list