LLVM: llvm::orc::ResourceTracker Class Reference (original) (raw)
API to remove / transfer ownership of JIT resources. More...
#include "[llvm/ExecutionEngine/Orc/Core.h](llvm%5F2ExecutionEngine%5F2Orc%5F2Core%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| ResourceTracker (const ResourceTracker &)=delete | |
| ResourceTracker & | operator= (const ResourceTracker &)=delete |
| ResourceTracker (ResourceTracker &&)=delete | |
| ResourceTracker & | operator= (ResourceTracker &&)=delete |
| LLVM_ABI | ~ResourceTracker () |
| JITDylib & | getJITDylib () const |
| Return the JITDylib targeted by this tracker. | |
| template | |
| Error | withResourceKeyDo (Func &&F) |
| Runs the given callback under the session lock, passing in the associated ResourceKey. | |
| LLVM_ABI Error | remove () |
| Remove all resources associated with this key. | |
| LLVM_ABI void | transferTo (ResourceTracker &DstRT) |
| Transfer all resources associated with this key to the given tracker, which must target the same JITDylib as this one. | |
| bool | isDefunct () const |
| Return true if this tracker has become defunct. | |
| ResourceKey | getKeyUnsafe () const |
| Returns the key associated with this tracker. | |
| Public Member Functions inherited from llvm::ThreadSafeRefCountedBase< ResourceTracker > | |
| unsigned | UseCount () const |
| void | Retain () const |
| void | Release () const |
| Friends | |
|---|---|
| class | ExecutionSession |
| class | JITDylib |
| class | MaterializationResponsibility |
API to remove / transfer ownership of JIT resources.
Definition at line 82 of file Core.h.
◆ ResourceTracker() [2/2]
References ResourceTracker().
◆ ~ResourceTracker()
| llvm::orc::ResourceTracker::~ResourceTracker | ( | ) |
|---|
◆ getJITDylib()
| JITDylib & llvm::orc::ResourceTracker::getJITDylib ( ) const | inline |
|---|
◆ getKeyUnsafe()
| ResourceKey llvm::orc::ResourceTracker::getKeyUnsafe ( ) const | inline |
|---|
Returns the key associated with this tracker.
This method should not be used except for debug logging: there is no guarantee that the returned value will remain valid.
Definition at line 119 of file Core.h.
Referenced by withResourceKeyDo().
◆ isDefunct()
| bool llvm::orc::ResourceTracker::isDefunct ( ) const | inline |
|---|
◆ operator=() [1/2]
References ResourceTracker().
◆ operator=() [2/2]
◆ remove()
| Error llvm::orc::ResourceTracker::remove | ( | ) |
|---|
◆ transferTo()
◆ withResourceKeyDo()
template
| Error llvm::orc::ResourceTracker::withResourceKeyDo | ( | Func && | F | ) |
|---|
◆ ExecutionSession
◆ JITDylib
◆ MaterializationResponsibility
The documentation for this class was generated from the following files: