OSDN Git Service

[mlir] Extended BufferPlacement to support nested region control flow.
authorMarcel Koester <marcel.koester@dfki.de>
Tue, 30 Jun 2020 09:58:45 +0000 (11:58 +0200)
committerStephan Herhut <herhut@google.com>
Tue, 30 Jun 2020 10:10:01 +0000 (12:10 +0200)
commit6f5da84f7bb31c7c2fcb78e64d5dc3baea1c60f2
tree0de25514fdb0750900a754071f10d9243cf9eba0
parentd28267f9810ce8642b27279b91a3a195ba932ce2
[mlir] Extended BufferPlacement to support nested region control flow.

Summary: The current BufferPlacement implementation does not support
nested region control flow. This CL adds support for nested regions via
the RegionBranchOpInterface and the detection of branch-like
(ReturnLike) terminators inside nested regions.

Differential Revision: https://reviews.llvm.org/D81926
mlir/lib/Transforms/BufferPlacement.cpp
mlir/test/Transforms/buffer-placement.mlir
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestOps.td