This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add a transform.structured.lower_unpack op
ClosedPublic

Authored by nicolasvasilache on Jan 30 2023, 5:44 AM.

Details

Summary

This revision introduces transform.structured.lower_unpack which allows
rewriting a tensor.unpack to transpose (linalg.generic) + tensor.empty + tensor.collapse_shape + tensor.extract_slice

The implementation is currently limited to static pack ops that do not have outer_dims permutations.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jan 30 2023, 5:44 AM
hanchung added inline comments.Jan 31 2023, 8:40 PM
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
902

The comment needs to be updated.

hanchung accepted this revision.Jan 31 2023, 8:41 PM
This revision is now accepted and ready to land.Jan 31 2023, 8:41 PM
This revision was landed with ongoing or failed builds.Feb 1 2023, 2:33 AM
This revision was automatically updated to reflect the committed changes.