llvm-project/mlir/lib/ExecutionEngine
wren romano 63bdcaf92a [mlir][sparse] Moving `delete coo` into codegen instead of runtime library
Prior to this change there were a number of places where the allocation and deallocation of SparseTensorCOO objects were not cleanly paired, leading to inconsistencies regarding whether each function released its tensor/coo arguments or not, as well as making it easy to run afoul of memory leaks, use-after-free, or double-free errors.  This change cleans up the codegen vs runtime boundary to resolve those issues.  Now, the only time the runtime library frees an object is either (a) because it's a function explicitly designed to do so, or (b) because the allocated object is entirely local to the function and would be a memory leak if not released.  Thus, now the codegen takes complete responsibility for releasing any objects it caused to be allocated.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D122435
2022-04-01 11:08:52 -07:00
..
AsyncRuntime.cpp [async] Get the number of worker threads from the runtime. 2022-01-31 12:06:01 -08:00
CMakeLists.txt [mlir][NFC] Rename StandardToLLVM to FuncToLLVM 2022-03-07 11:25:23 -08:00
CRunnerUtils.cpp Partially revert 03e6d10cac86: it broke the build 2022-03-07 11:18:20 +00:00
CudaRuntimeWrappers.cpp [MLIR][GPU] Remove call to cudaSetDevice(), which no longer exists 2022-02-17 21:38:05 +00:00
ExecutionEngine.cpp [mlir] ExecutionEngine: default enableObjectCache to false 2022-03-10 11:24:48 -05:00
JitRunner.cpp [mlir:FunctionOpInterface] Rename the "type" attribute to "function_type" 2022-03-16 17:07:04 -07:00
OptUtils.cpp Revert "Revert "[mlir] Convert from Async dialect to LLVM coroutines"" 2020-10-22 15:23:11 -04:00
RocmRuntimeWrappers.cpp [MLIR][GPU] Add gpu.set_default_device op 2022-02-17 21:30:09 +00:00
RunnerUtils.cpp [mlir] Add a function to print C-strings to RunnerUtils.cpp. 2022-03-21 13:09:09 +01:00
SparseTensorUtils.cpp [mlir][sparse] Moving `delete coo` into codegen instead of runtime library 2022-04-01 11:08:52 -07:00