This is an archive of the discontinued LLVM Phabricator instance.

[mlir] make remaining memref dialect ops produce strided layouts
ClosedPublic

Authored by ftynse on Sep 15 2022, 8:24 AM.

Details

Summary

The three following ops in the memref dialect: transpose, expand_shape,
collapse_shape, have been originally designed to operate on memrefs with
strided layouts but had to go through the affine map representation as the type
did not support anything else. Make these ops produce memref values with
StridedLayoutAttr instead now that it is available.

Depends On D133938

Diff Detail

Event Timeline

ftynse created this revision.Sep 15 2022, 8:24 AM
ftynse requested review of this revision.Sep 15 2022, 8:24 AM
Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache accepted this revision.Sep 15 2022, 2:30 PM

generally LGTM modulo the weird lambda

mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
964–982

huh .. ? seems like this could be refactored better to be useful in general and not be called 2?

This revision is now accepted and ready to land.Sep 15 2022, 2:30 PM
ftynse marked an inline comment as done.Sep 16 2022, 1:43 AM
This revision was landed with ongoing or failed builds.Sep 16 2022, 1:57 AM
This revision was automatically updated to reflect the committed changes.