This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Remove hardcoded usage of alloc/dealloc; use memory effects
ClosedPublic

Authored by bondhugula on Aug 16 2022, 9:57 PM.

Details

Summary

Remove hardcoded usage of memref.alloc/dealloc ops in affine utils; use memory
effects instead. This is NFC for existing test cases, but strictly more
general/powerful in terms of functionality: it allows other allocation and
freeing ops (like gpu.alloc/dealloc) to work in conjunction with affine ops and
utilities.

Diff Detail

Event Timeline

bondhugula created this revision.Aug 16 2022, 9:57 PM
bondhugula requested review of this revision.Aug 16 2022, 9:57 PM
rriddle accepted this revision.Aug 17 2022, 10:21 AM
This revision is now accepted and ready to land.Aug 17 2022, 10:22 AM
dcaballe accepted this revision.Aug 17 2022, 10:38 AM

LGTM. Thanks!