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
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?