llvm-project/mlir/test/Transforms
Uday Bondhugula 8b3f841daf Generate dealloc's for the alloc's of dma-generate.
- for the DMA buffers being allocated (and their tags), generate corresponding deallocs
- minor related update to replaceAllMemRefUsesWith and PipelineDataTransfer pass

Code generation for DMA transfers was being done with the initial simplifying
assumption that the alloc's would map to scoped allocations, and so no
deallocations would be necessary. Drop this assumption to generalize. Note that
even with scoped allocations, unrolling loops that have scoped allocations
could create a series of allocations and exhaustion of fast memory. Having a
end of lifetime marker like a dealloc in fact allows creating new scopes if
necessary when lowering to a backend and still utilize scoped allocation.
DMA buffers created by -dma-generate are guaranteed to have either
non-overlapping lifetimes or nested lifetimes.

PiperOrigin-RevId: 233502632
2019-03-29 16:24:08 -07:00
..
Vectorize Automated rollback of changelist 232728977. 2019-03-29 16:21:38 -07:00
canonicalize.mlir Modify the canonicalizations of select and muli to use the fold hook. 2019-03-29 16:20:06 -07:00
constant-fold.mlir Modify the canonicalizations of select and muli to use the fold hook. 2019-03-29 16:20:06 -07:00
cse.mlir Automated rollback of changelist 232717775. 2019-03-29 16:19:33 -07:00
dma-generate.mlir Generate dealloc's for the alloc's of dma-generate. 2019-03-29 16:24:08 -07:00
loop-fusion.mlir Automated rollback of changelist 232728977. 2019-03-29 16:21:38 -07:00
loop-tiling.mlir Automated rollback of changelist 232717775. 2019-03-29 16:19:33 -07:00
lower-affine.mlir Automated rollback of changelist 232728977. 2019-03-29 16:21:38 -07:00
memref-bound-check.mlir Automated rollback of changelist 232717775. 2019-03-29 16:19:33 -07:00
memref-dataflow-opt.mlir Automated rollback of changelist 232717775. 2019-03-29 16:19:33 -07:00
memref-dependence-check.mlir Automated rollback of changelist 232728977. 2019-03-29 16:21:38 -07:00
pipeline-data-transfer.mlir Automated rollback of changelist 232717775. 2019-03-29 16:19:33 -07:00
simplify-affine-structures.mlir Automated rollback of changelist 232728977. 2019-03-29 16:21:38 -07:00
slicing_utils.mlir Eliminate extfunc/cfgfunc/mlfunc as a concept, and just use 'func' instead. 2019-03-29 14:51:37 -07:00
strip-debuginfo.mlir Automated rollback of changelist 232728977. 2019-03-29 16:21:38 -07:00
unroll-jam.mlir Automated rollback of changelist 232717775. 2019-03-29 16:19:33 -07:00
unroll.mlir Automated rollback of changelist 232717775. 2019-03-29 16:19:33 -07:00