[mlir][linalg][bufferize] Add MemCpyFn to AllocationCallbacks struct
authorMatthias Springer <springerm@google.com>
Fri, 5 Nov 2021 01:42:59 +0000 (10:42 +0900)
committerMatthias Springer <springerm@google.com>
Fri, 5 Nov 2021 01:44:12 +0000 (10:44 +0900)
commit3f6c0fb2ff750c9246aee41eb8ad086518752edf
treebd4708167a05bb983e03037835a9b27a1e2f5091
parent6c6ccc72a6124164df5b8445624d220d45cf4b6a
[mlir][linalg][bufferize] Add MemCpyFn to AllocationCallbacks struct

This in preparation of decoupling BufferizableOpInterface, Comprehensive Bufferize and dialects.

The goal of this CL is to make `getResultBuffer` (and other `bufferize` functions) independent of `LinalgOps`.

Differential Revision: https://reviews.llvm.org/D112907
mlir/include/mlir/Dialect/Linalg/Transforms/ComprehensiveBufferize.h
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp