This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Support MemRefType with multiple AffineMaps in getStridesAndOffset
ClosedPublic

Authored by vinograd47 on Mar 23 2021, 3:35 AM.

Details

Summary

Compose multiple AffineMaps into single map before strides extraction.

Diff Detail

Event Timeline

vinograd47 created this revision.Mar 23 2021, 3:35 AM
vinograd47 requested review of this revision.Mar 23 2021, 3:35 AM
ftynse accepted this revision.Mar 24 2021, 6:32 AM
This revision is now accepted and ready to land.Mar 24 2021, 6:32 AM
stella.stamenova added inline comments.
mlir/unittests/IR/MemRefTypeTest.cpp
31

This test introduced a bunch of clang warnings such as:

/s/llvm/utils/unittest/googletest/include/gtest/gtest.h:1392:11: error: comparison of integers of different signs: 'const int' and 'const unsigned long' [-Werror,-Wsign-compare]