llvm-project/mlir/test
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
..
AffineOps Automated rollback of changelist 232728977. 2019-03-29 16:21:38 -07:00
Dialect Add binary broadcastable builder. 2019-03-29 16:23:38 -07:00
EDSC Cleanup EDSCs and start a functional auto-generated library of custom Ops 2019-03-29 16:05:23 -07:00
IR Remove the restriction that only registered terminator operations may terminate a block and have block operands. This allows for any operation to hold block operands. It also introduces the notion that unregistered operations may terminate a block. As such, the 'isTerminator' api on Instruction has been split into 'isKnownTerminator' and 'isKnownNonTerminator'. 2019-03-29 16:22:23 -07:00
LLVMIR Convert MemRefCastOp to the LLVM IR dialect 2019-03-29 16:22:38 -07:00
Target LLVM IR lowering: support integer division and remainder operations 2019-03-29 14:59:07 -07:00
Transforms Generate dealloc's for the alloc's of dma-generate. 2019-03-29 16:24:08 -07:00
mlir-cpu-runner Simple CPU runner 2019-03-29 15:36:08 -07:00
mlir-tblgen [TableGen] Assign created ops to variables and rewrite with PatternRewriter::replaceOp() 2019-03-29 16:22:53 -07:00