llvm-project/mlir/test
Aart Bik 16b8f4ddae [mlir][sparse] add a "release" operation to sparse tensor dialect
We have several ways to materialize sparse tensors (new and convert) but no explicit operation to release the underlying sparse storage scheme at runtime (other than making an explicit delSparseTensor() library call). To simplify memory management, a sparse_tensor.release operation has been introduced that lowers to the runtime library call while keeping tensors, opague pointers, and memrefs transparent in the initial IR.

*Note* There is obviously some tension between the concept of immutable tensors and memory management methods. This tension is addressed by simply stating that after the "release" call, no further memref related operations are allowed on the tensor value. We expect the design to evolve over time, however, and arrive at a more satisfactory view of tensors and buffers eventually.

Bug:
http://llvm.org/pr52046

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D111099
2021-10-05 09:35:59 -07:00
..
Analysis [mlir] Create a generic reduction detection utility 2021-09-24 20:45:59 +00:00
CAPI Fix memory leaks in MLIR unit-tests (NFC) 2021-10-02 21:31:46 +00:00
Conversion [mlir] Convert ConstShapeOp to a static tensor type. 2021-10-05 12:14:43 +02:00
Dialect [mlir][sparse] add a "release" operation to sparse tensor dialect 2021-10-05 09:35:59 -07:00
Examples Fix/disable more MLIR tests exposing leaks in ASAN builds (NFC) 2021-10-02 23:53:02 +00:00
IR Fix/disable more MLIR tests exposing leaks in ASAN builds (NFC) 2021-10-02 23:53:02 +00:00
Integration [mlir][sparse] add a "release" operation to sparse tensor dialect 2021-10-05 09:35:59 -07:00
Interfaces Split `InferShapedTypeOpInterface` to create `ReifyRankedShapedTypeInterface`. 2021-07-19 14:44:52 -07:00
Pass Fix/disable more MLIR tests exposing leaks in ASAN builds (NFC) 2021-10-02 23:53:02 +00:00
Rewrite [mlir][PDL] Add support for variadic operands and results in the PDL byte code 2021-03-16 13:20:19 -07:00
Target [mlir][SPIRVToLLVM] Propagate location attribute from spv.GlobalVariable to llvm.mlir.global 2021-10-05 00:09:09 +08:00
Transforms [mlir] Mode for explicitly controlling the fusion kind 2021-09-27 20:37:42 +03:00
Unit Revert "Attempt to disable MLIR JIT tests on PowerPC to unbreak the bot" 2021-06-29 18:03:23 -05:00
lib Fix/disable more MLIR tests exposing leaks in ASAN builds (NFC) 2021-10-02 23:53:02 +00:00
mlir-cpu-runner Fix multiple memory leaks in mlir-cpu-runner tests (NFC) 2021-10-02 23:16:35 +00:00
mlir-linalg-ods-gen [mlir] Remove old "tc" linalg ods generator. 2021-09-30 16:30:06 +00:00
mlir-lsp-server [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
mlir-opt [mlir] Set the namespace of the BuiltinDialect to 'builtin' 2021-07-28 21:00:10 +00:00
mlir-reduce [mlir-reduce] Reducer refactor. 2021-06-02 07:45:00 +08:00
mlir-spirv-cpu-runner [mlir] fix SPIR-V CPU and Vulkan runners after e2310704d8 2021-03-15 18:36:58 +01:00
mlir-tblgen [ODS/AsmParser] Don't pass MLIRContext with DialectAsmParser. 2021-09-30 05:10:28 +00:00
mlir-translate
mlir-vulkan-runner [mlir] fix SPIR-V CPU and Vulkan runners after e2310704d8 2021-03-15 18:36:58 +01:00
python [mlir][python] Provide more convenient constructors for std.CallOp 2021-10-04 11:45:29 +02:00
APITest.h
CMakeLists.txt Add a `check-mlir-build-only` build target that only builds the dependencies of the `check-mlir` test target (NFC) 2021-10-02 04:06:17 +00:00
lit.cfg.py [mlir] [test] Add missing tool substitutions 2021-10-03 21:28:13 +02:00
lit.site.cfg.py.in [MLIR] Fix Standalone dialect test to work in out-of-tree builds 2021-06-02 17:24:46 +00:00