This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg][bufferize] Migrate --linalg-bufferize to BufferizableOpInterface-based bufferization
ClosedPublic

Authored by springerm on Mar 3 2022, 2:51 AM.

Details

Summary

This commit deletes the old dialect conversion-based bufferization patterns, which are now obsolete.

Diff Detail

Event Timeline

springerm created this revision.Mar 3 2022, 2:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 2:51 AM
springerm requested review of this revision.Mar 3 2022, 2:51 AM
pifon2a accepted this revision.Mar 3 2022, 2:56 AM
pifon2a added inline comments.
mlir/test/Dialect/Linalg/bufferize.mlir
16

do you need {{.*}} here?

185

is it always unnecessary or only when in-place analysis is enabled?

This revision is now accepted and ready to land.Mar 3 2022, 2:56 AM
springerm marked an inline comment as done.Mar 3 2022, 3:15 AM
springerm added inline comments.
mlir/test/Dialect/Linalg/bufferize.mlir
16

By default {alignment = 128} will be generated. This can be deactivated in BufferizationOptions if needed.

185

It is always unnecessary. We need the alloc, but since the original data is not read by the linalg.dot, we don't need to copy it. So this could be optimized a bit. This needs a fix in BufferizableOpInterface, it's on my radar.