[Mlir-commits] [mlir] [mlir][memref] Enforce consistent reinterpret_cast metadata (PR #217338)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Sat Aug 22 03:28:58 PDT 2026


================
@@ -351,5 +351,24 @@ bool hasNegativeStaticStride(MemRefType memRefTy) {
   });
 }
 
+MemRefType updateTypeFromMetadata(MemRefType type, OpFoldResult offset,
----------------
ftynse wrote:

This doesn't necessarily belong to the memref dialect, the memref _type_ -- perhaps confusingly -- lives in the builtin dialect. Unless `decomposeMixedValues` somehow relies on the memref dialect, this code should move so its clients don't need to depend on an extra library.

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


More information about the Mlir-commits mailing list