This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add layout specification support to bufferization.
ClosedPublic

Authored by nicolasvasilache on Jul 12 2021, 4:35 PM.

Details

Summary

Previously, linalg bufferization always had to be conservative at function boundaries and assume the most dynamic strided memref layout.
This revision introduce the mechanism to specify a linalg.buffer_layout function argument attribute that carries an affine map used to set a less pessimistic layout.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jul 12 2021, 4:35 PM
ThomasRaoux accepted this revision.Jul 12 2021, 9:43 PM
ThomasRaoux added inline comments.
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
2624

nit: missing space

2624

nit: typo

This revision is now accepted and ready to land.Jul 12 2021, 9:43 PM