torch-mlir/include/npcomp/RefBackend
Sean Silva 0b7c443256 [RefBackend] Properly initialize refbackrt::Tensor refcount.
Although `refCount` is initialized as `std::atomic<int> refCount{0};` in
the definition of Tensor, our tail-allocating malloc would ignore it,
resulting in bogus values that led to leaks.

Caught with LeakSanitizer, but I added an assertion that the refcount is
non-negative to begin with, which should catch this bug in the future
fairly consistently (assuming the garbage refcount is negative half the
time).
2020-11-24 12:01:35 -08:00
..
JITHelpers [RefBackend] Put JITModule in refback namsepace. 2020-10-08 09:07:00 -07:00
Runtime [RefBackend] Properly initialize refbackrt::Tensor refcount. 2020-11-24 12:01:35 -08:00
CMakeLists.txt [RefBackend] Rename "E2E" to RefBackend. 2020-10-07 10:29:48 -07:00
Passes.td [RefBackend] Use std.global_memref instead of homegrown thing 2020-11-13 18:43:50 -08:00
RefBackend.h [RefBackend] Add refback-tcf-to-tcp-pipeline 2020-11-17 12:33:37 -08:00