[mlir][Bufferize] Rename TestBufferPlacement to TestFinalizingBufferize
authorSean Silva <silvasean@google.com>
Thu, 22 Oct 2020 19:47:29 +0000 (12:47 -0700)
committerSean Silva <silvasean@google.com>
Mon, 2 Nov 2020 20:42:32 +0000 (12:42 -0800)
commit773ad135a30dbe0f969086e3ed518ab17502e9f5
tree4cdffc63a005386602ffb716fe02b83b2fe394b6
parent52b0fe64045d3fbbb7604f70066ac91970da612f
[mlir][Bufferize] Rename TestBufferPlacement to TestFinalizingBufferize

BufferPlacement is no longer part of bufferization. However, this test
is an important test of "finalizing" bufferize passes.
A "finalizing" bufferize conversion is one that performs a "full"
conversion and expects all tensors to be gone from the program. This in
particular involves rewriting funcs (including block arguments of the
contained region), calls, and returns. The unique property of finalizing
bufferization passes is that they cannot be done via a local
transformation with suitable materializations to ensure composability
(as other bufferization passes do). For example, if a call is
rewritten, the callee needs to be rewritten otherwise the IR will end up
invalid. Thus, finalizing bufferization passes require an atomic change
to the entire program (e.g. the whole module).

This new designation makes it clear also that it shouldn't be testing
bufferization of linalg ops, so the tests have been updated to not use
linalg.generic ops. (linalg.copy is still used as the "copy" op for
copying into out-params)

Differential Revision: https://reviews.llvm.org/D89979
mlir/test/Transforms/finalizing-bufferize-allowed-memref-results.mlir [moved from mlir/test/Transforms/buffer-placement-preparation-allowed-memref-results.mlir with 89% similarity]
mlir/test/Transforms/finalizing-bufferize.mlir [moved from mlir/test/Transforms/buffer-placement-preparation.mlir with 65% similarity]
mlir/test/lib/Transforms/CMakeLists.txt
mlir/test/lib/Transforms/TestBufferPlacement.cpp [deleted file]
mlir/test/lib/Transforms/TestFinalizingBufferize.cpp [new file with mode: 0644]
mlir/tools/mlir-opt/mlir-opt.cpp