This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Move memref.subview patterns to Memref/Transforms/
ClosedPublic

Authored by antiagainst on Apr 12 2021, 10:30 AM.

Details

Summary

These patterns have been used as a prerequisite step for lowering
to SPIR-V. But they don't involve SPIR-V dialect ops; they are
pure memref/vector op transformations. Given now we have a dedicated
MemRef dialect, moving them to Memref/Transforms/, which is a more
suitable place to host them, to allow used by others.

This commit just moves code around and renames patterns/passes
accordingly. CMakeLists.txt for existing MemRef libraries are
also improved along the way.

Diff Detail

Event Timeline

antiagainst created this revision.Apr 12 2021, 10:30 AM
antiagainst requested review of this revision.Apr 12 2021, 10:30 AM
mravishankar accepted this revision.Apr 12 2021, 1:36 PM
This revision is now accepted and ready to land.Apr 12 2021, 1:36 PM
mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp