llvm-project
640103b9 - [mlir][MemRef][~NFC] Move getStridesAndOffset() onto layouts (#138011)

Commit
244 days ago
[mlir][MemRef][~NFC] Move getStridesAndOffset() onto layouts (#138011) This commit refactors the getStridesAndOffet() method on MemRefType to just call `MemRefLayoutAttrInterface::getStridesAndOffset(shape, strides& offset&)`, allowing downstream users and future layouts (ex, a potential contiguous layout) to implement it without needing to patch BuiltinTypes or without needing them to conform their affine maps to the canonical strided form.
Author
Parents
Loading