[Mlir-commits] [mlir] 1906c18 - [mlir][memref] Mark result memref as "strided" (#135939)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 16 23:48:32 PDT 2025


Author: Matthias Springer
Date: 2025-04-17T08:48:29+02:00
New Revision: 1906c18ce01092aed9524f1cb8344c11920ba144

URL: https://github.com/llvm/llvm-project/commit/1906c18ce01092aed9524f1cb8344c11920ba144
DIFF: https://github.com/llvm/llvm-project/commit/1906c18ce01092aed9524f1cb8344c11920ba144.diff

LOG: [mlir][memref] Mark result memref as "strided" (#135939)

We already check this in the verifier, but this makes it explicit in the
Tablegen.

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td b/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
index 3edc2433c85ea..0cea19964f5f4 100644
--- a/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
+++ b/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
@@ -1372,7 +1372,7 @@ def MemRef_ReinterpretCastOp
                        DenseI64ArrayAttr:$static_offsets,
                        DenseI64ArrayAttr:$static_sizes,
                        DenseI64ArrayAttr:$static_strides);
-  let results = (outs AnyMemRef:$result);
+  let results = (outs AnyStridedMemRef:$result);
 
   let assemblyFormat = [{
     $source `to` `offset` `` `:`


        


More information about the Mlir-commits mailing list