[MLIR] Added PromoteBuffersToStackPass to convert heap- to stack-based allocations.
authorJulian Gross <julian.gross@dfki.de>
Mon, 19 Oct 2020 11:49:06 +0000 (13:49 +0200)
committerJulian Gross <julian.gross@dfki.de>
Fri, 23 Oct 2020 10:02:25 +0000 (12:02 +0200)
commit0d1d363c51c93614783755426cb58c819c164fab
treeb810a03258bd1133953c827239cda310ce5c8c80
parentff87c4d3e773ae89ae62af20941339f0f252dafd
[MLIR] Added PromoteBuffersToStackPass to convert heap- to stack-based allocations.

Added optimization pass to convert heap-based allocs to stack-based allocas in
buffer placement. Added the corresponding test file.

Differential Revision: https://reviews.llvm.org/D89688
mlir/include/mlir/Transforms/Passes.h
mlir/include/mlir/Transforms/Passes.td
mlir/lib/Transforms/BufferOptimizations.cpp
mlir/test/Transforms/promote-buffers-to-stack.mlir [new file with mode: 0644]