[mlir] Introduce CallOp converter for buffer placement
authorEhsan Toosi <ehsan.nadjaran_toosi@dfki.de>
Tue, 26 May 2020 13:03:45 +0000 (15:03 +0200)
committerEhsan Toosi <ehsan.nadjaran_toosi@dfki.de>
Tue, 2 Jun 2020 09:35:24 +0000 (11:35 +0200)
commit3f6a35e3ffd49e063bb12464513b3847c535c242
tree883691c87bbf7a84e4be01d25c5854c88230f44e
parent3c626c714c9d1521b57ff07b1211f9d21cbeceef
[mlir] Introduce CallOp converter for buffer placement

Add BufferAssignmentCallOpConverter as a pattern rewriter for Buffer
Placement. It matches the signature of the caller operation with the callee
after rewriting the callee with FunctionAndBlockSignatureConverter.

Differential Revision: https://reviews.llvm.org/D80785
mlir/include/mlir/Transforms/BufferPlacement.h
mlir/lib/Transforms/BufferPlacement.cpp
mlir/test/Transforms/buffer-placement-preparation.mlir
mlir/test/lib/Transforms/TestBufferPlacement.cpp