This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Add bufferization patterns for non-DPS ops
ClosedPublic

Authored by springerm on Feb 14 2023, 9:01 AM.

Details

Summary

These patterns bufferize non-destination-style ops into a newly materialized buffer allocation. The provided helper function can be used to materialize allocations of tensor.pad when folding is not desirable and an allocation must happen.

The resulting IR can be further bufferized with One-Shot Bufferize.

Depends On: D144021

Diff Detail

Event Timeline

springerm created this revision.Feb 14 2023, 9:01 AM
springerm requested review of this revision.Feb 14 2023, 9:01 AM
nicolasvasilache added inline comments.
mlir/test/Dialect/Linalg/bufferize-non-dps-ops.mlir
2

Since this is a new file, we do not need to continue using a test pass to test this.
Can we use a new transform op instead?

This revision is now accepted and ready to land.Feb 14 2023, 10:16 AM
springerm updated this revision to Diff 497659.Feb 15 2023, 6:17 AM
springerm marked an inline comment as done.

update

This revision was landed with ongoing or failed builds.Feb 15 2023, 6:23 AM
This revision was automatically updated to reflect the committed changes.