[Mlir-commits] [mlir] [MLIR] Determine contiguousness of memrefs with dynamic dimensions (PR #142421)

James Newling llvmlistbot at llvm.org
Thu Jun 5 07:47:34 PDT 2025


================
@@ -838,6 +838,26 @@ def Builtin_MemRef : Builtin_Type<"MemRef", "memref", [
     ///
     bool areTrailingDimsContiguous(int64_t n);
 
+    /// Return the maximum number of trailing dimensions that are
----------------
newling wrote:

```suggestion
    /// Return the number of trailing dimensions that are
```

Maybe 'maximum' is redundant, and the method could be called `getNumContiguousTrailingDims()`

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


More information about the Mlir-commits mailing list