[Mlir-commits] [mlir] [mlir][vector] Don't treat memrefs with empty stride as non-contiguous (PR #76848)

Andrzej WarzyƄski llvmlistbot at llvm.org
Mon Jan 8 13:48:59 PST 2024


banach-space wrote:

> Thanks! LGTM but wondering why memrefs don't actually have `multi-dimensional identity affine map` by default (that is not printed)?

>From the docs:
> The layout is an attribute that implements `MemRefLayoutAttrInterface`.

So yes, I could use this instead:
```cpp
 memrefType.getLayout().isIdentity();
```
But then I'd still need to access strides if the layout is not an identity map.

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


More information about the Mlir-commits mailing list