LLVM 20.0.0git
Public Member Functions | List of all members
llvm::orc::ResourceManager Class Referenceabstract

Listens for ResourceTracker operations. More...

#include "llvm/ExecutionEngine/Orc/Core.h"

Inheritance diagram for llvm::orc::ResourceManager:
Inheritance graph
[legend]

Public Member Functions

virtual ~ResourceManager ()
 
virtual Error handleRemoveResources (JITDylib &JD, ResourceKey K)=0
 This function will be called outside the session lock.
 
virtual void handleTransferResources (JITDylib &JD, ResourceKey DstK, ResourceKey SrcK)=0
 This function will be called inside the session lock.
 

Detailed Description

Listens for ResourceTracker operations.

Definition at line 125 of file Core.h.

Constructor & Destructor Documentation

◆ ~ResourceManager()

llvm::orc::ResourceManager::~ResourceManager ( )
virtualdefault

Member Function Documentation

◆ handleRemoveResources()

virtual Error llvm::orc::ResourceManager::handleRemoveResources ( JITDylib JD,
ResourceKey  K 
)
pure virtual

This function will be called outside the session lock.

ResourceManagers should perform book-keeping under the session lock, and any expensive cleanup outside the session lock.

Implemented in llvm::orc::LazyReexportsManager, and llvm::orc::ReOptimizeLayer.

◆ handleTransferResources()

virtual void llvm::orc::ResourceManager::handleTransferResources ( JITDylib JD,
ResourceKey  DstK,
ResourceKey  SrcK 
)
pure virtual

This function will be called inside the session lock.

ResourceManagers DO NOT need to re-lock the session.

Implemented in llvm::orc::LazyReexportsManager, and llvm::orc::ReOptimizeLayer.


The documentation for this class was generated from the following files: