[mlir][memref] Implement fast lowering of memref.copy
authorStephan Herhut <herhut@google.com>
Fri, 7 Jan 2022 09:00:19 +0000 (10:00 +0100)
committerStephan Herhut <herhut@google.com>
Fri, 14 Jan 2022 13:22:15 +0000 (14:22 +0100)
commitab95ba704da458022f0fb3d7785a1d8b500b41b0
tree8f2605c47ed62dafbc4e5e7d3f1dff67cd3b3e95
parent713c2b47a07d4f0e02f4a891b2738ee0faed7ce1
[mlir][memref] Implement fast lowering of memref.copy

In the absence of maps, we can lower memref.copy to a memcpy.

Differential Revision: https://reviews.llvm.org/D116099
mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
mlir/test/mlir-cpu-runner/copy.mlir