This is an archive of the discontinued LLVM Phabricator instance.

[mlir][MemRef] Lower memref.copy with an offset to memcpy
ClosedPublic

Authored by bkramer on Feb 16 2022, 5:55 AM.

Details

Summary

memcpy can handle them as long as they're contiguous.

Diff Detail

Event Timeline

bkramer created this revision.Feb 16 2022, 5:55 AM
bkramer requested review of this revision.Feb 16 2022, 5:55 AM

Consider also adding an integration test. I think we have one for the other cases.

mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
845

Why is this better done on the target?

bkramer updated this revision to Diff 409248.Feb 16 2022, 7:38 AM
  • Revert unnecessary change
mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
845

Yeah, this doesn't make sense. Removed that change.

herhut accepted this revision.Feb 16 2022, 7:40 AM

Thanks!

This revision is now accepted and ready to land.Feb 16 2022, 7:40 AM
This revision was landed with ongoing or failed builds.Feb 16 2022, 8:19 AM
This revision was automatically updated to reflect the committed changes.