llvm-project/mlir
Matthias Springer 9e24f0f458 [mlir][bufferize] Do not deallocate allocs that are returned from a block
Such IR is rejected by default, but can be allowed with `allow-return-memref`. In preparation of future refactorings, do not deallocate such buffers.

One-Shot Analysis now gathers information about yielded tensors, so that we know during the actual bufferization whether a newly allocated buffer should be deallocated again. (Otherwise, it will leak. This will be addressed in a subsequent commit that also makes `allow-return-memref` a non-experimental flag.)

As a cleanup, `allow-return-memref` is now part of OneShotBufferizationOptions. (It was previously ignored by AlwaysCopyBufferizationState.) Moreover, AlwaysCopyBufferizationState now asserts that `create-deallocs` is deactivated to prevent surprising behavior.

Differential Revision: https://reviews.llvm.org/D121521
2022-03-16 18:59:27 +09:00
..
benchmark/python [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
cmake/modules Remove include_directories() from cmake `mlir_tablegen()` function (NFC) 2022-03-14 04:36:24 +00:00
docs [mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp 2022-03-15 14:55:51 -07:00
examples Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
include [mlir][bufferize] Do not deallocate allocs that are returned from a block 2022-03-16 18:59:27 +09:00
lib [mlir][bufferize] Do not deallocate allocs that are returned from a block 2022-03-16 18:59:27 +09:00
python NFC: Remove unterminated string from Python pyi file. 2022-03-14 14:10:38 -07:00
test [mlir][bufferize] Do not deallocate allocs that are returned from a block 2022-03-16 18:59:27 +09:00
tools [mlir] Remove the deprecated ODS Op verifier/parser/printer code blocks 2022-03-15 01:17:30 -07:00
unittests [MLIR][Presburger] Add support for PresburgerRelation 2022-03-13 17:31:19 +05:30
utils [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
.clang-format
.clang-tidy Enable readability-redundant-smartptr-get in MLIR local clang-tidy config 2022-01-08 20:07:11 +00:00
CMakeLists.txt [mlir] Add option to control python search priming 2022-03-01 14:52:56 -08:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.