torch-mlir/lib/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 Bump llvm-project to c8c07b76b2cf2ada8e7ec132f7f57b97d76743cf. 2020-10-29 15:25:55 -07:00
Runtime [RefBackend] Properly initialize refbackrt::Tensor refcount. 2020-11-24 12:01:35 -08:00
CMakeLists.txt [RefBackend] Use std.global_memref instead of homegrown thing 2020-11-13 18:43:50 -08:00
LowerToLLVM.cpp [RefBackend] Use std.global_memref instead of homegrown thing 2020-11-13 18:43:50 -08:00
LowerToRefbackrtABI.cpp [RefBackend] Use std.global_memref instead of homegrown thing 2020-11-13 18:43:50 -08:00
PassDetail.h [RefBackend] Rename "E2E" to RefBackend. 2020-10-07 10:29:48 -07:00
RefBackend.cpp [RefBackend] Add refback-tcf-to-tcp-pipeline 2020-11-17 12:33:37 -08:00