diff options
author | Andrzej WarzyĆski <andrzej.warzynski@arm.com> | 2024-01-09 08:13:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 08:13:31 +0000 |
commit | 81df51fb318f2a83de3414c6f9f6770fa6ccda38 (patch) | |
tree | eeac971c658246f463b9b1edcae4e46e46f50254 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 3d688d4e3db58c68f090c3e118e7e052c9c25593 (diff) | |
download | llvm-81df51fb318f2a83de3414c6f9f6770fa6ccda38.zip llvm-81df51fb318f2a83de3414c6f9f6770fa6ccda38.tar.gz llvm-81df51fb318f2a83de3414c6f9f6770fa6ccda38.tar.bz2 |
[mlir][vector] Don't treat memrefs with empty stride as non-contiguous (#76848)
As per the docs [1]:
```
In absence of an explicit layout, a memref is considered to have a
multi-dimensional identity affine map layout.
```
This patch makes sure that MemRefs with no strides (i.e. no explicit
layout) are treated as contiguous when checking whether a particular
vector is a contiguous slice of the given MemRef.
[1] https://mlir.llvm.org/docs/Dialects/Builtin/#layout
Follow-up for #76428.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions