This is an archive of the discontinued LLVM Phabricator instance.

Allow same memory space for SRC and DST of dma_start operations
ClosedPublic

Authored by manbearian on May 11 2021, 1:05 PM.

Details

Summary
This change allows the SRC and DST of dma_start operations to be located in the
same memory space. This applies to both the Affine dialect and Memref dialect
versions of these Ops. The documention has been updated to reflect this by
explicitly stating overlapping memory locations are not supported (undefined
behavior).

Diff Detail

Event Timeline

manbearian created this revision.May 11 2021, 1:05 PM
manbearian requested review of this revision.May 11 2021, 1:05 PM

updated "invalid op" test to model new behavior

bondhugula accepted this revision.May 12 2021, 4:12 AM
This revision is now accepted and ready to land.May 12 2021, 4:12 AM

@bondhugula , thanks for the sign-off. What are the next steps to get this code merged, this is my first contribution to LLVM or MLIR?

thanks,
ian