LLVM 24.0.0git
llvm::orc::DarwinPlatform Class Reference

Mediates between Darwin and ExecutionSession state. More...

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

Inheritance diagram for llvm::orc::DarwinPlatform:
[legend]

Public Member Functions

Error setupJITDylib (JITDylib &JD) override
 This method will be called outside the session lock each time a JITDylib is created (unless it is created with EmptyJITDylib set) to allow the Platform to install any JITDylib specific standard symbols (e.g __dso_handle).
Error teardownJITDylib (JITDylib &JD) override
 This method will be called outside the session lock each time a JITDylib is removed to allow the Platform to remove any JITDylib-specific data.
Error notifyAdding (ResourceTracker &RT, const MaterializationUnit &MU) override
 This method will be called under the ExecutionSession lock each time a MaterializationUnit is added to a JITDylib.
Error notifyRemoving (ResourceTracker &RT) override
 This method will be called under the ExecutionSession lock when a ResourceTracker is removed.
Public Member Functions inherited from llvm::orc::Platform
virtual ~Platform ()

Static Public Member Functions

static Expected< std::unique_ptr< DarwinPlatform > > Create (ObjectLinkingLayer &ObjLinkingLayer, JITDylib &PlatformJD)
Static Public Member Functions inherited from llvm::orc::Platform
static Expected< DenseMap< JITDylib *, SymbolMap > > lookupInitSymbols (ExecutionSession &ES, const DenseMap< JITDylib *, SymbolLookupSet > &InitSyms)
 A utility function for looking up initializer symbols.
static void lookupInitSymbolsAsync (unique_function< void(Error)> OnComplete, ExecutionSession &ES, const DenseMap< JITDylib *, SymbolLookupSet > &InitSyms)
 Performs an async lookup for the given symbols in each of the given JITDylibs, calling the given handler once all lookups have completed.

Detailed Description

Mediates between Darwin and ExecutionSession state.

Definition at line 25 of file DarwinPlatform.h.

Member Function Documentation

◆ Create()

Expected< std::unique_ptr< DarwinPlatform > > llvm::orc::DarwinPlatform::Create ( ObjectLinkingLayer & ObjLinkingLayer,
JITDylib & PlatformJD )
static

Definition at line 38 of file DarwinPlatform.cpp.

References P, and llvm::Error::success().

◆ notifyAdding()

Error llvm::orc::DarwinPlatform::notifyAdding ( ResourceTracker & RT,
const MaterializationUnit & MU )
overridevirtual

This method will be called under the ExecutionSession lock each time a MaterializationUnit is added to a JITDylib.

Implements llvm::orc::Platform.

Definition at line 61 of file DarwinPlatform.cpp.

References llvm::Error::success().

◆ notifyRemoving()

Error llvm::orc::DarwinPlatform::notifyRemoving ( ResourceTracker & RT)
overridevirtual

This method will be called under the ExecutionSession lock when a ResourceTracker is removed.

Implements llvm::orc::Platform.

Definition at line 66 of file DarwinPlatform.cpp.

References llvm::Error::success().

◆ setupJITDylib()

Error llvm::orc::DarwinPlatform::setupJITDylib ( JITDylib & JD)
overridevirtual

This method will be called outside the session lock each time a JITDylib is created (unless it is created with EmptyJITDylib set) to allow the Platform to install any JITDylib specific standard symbols (e.g __dso_handle).

Implements llvm::orc::Platform.

Definition at line 55 of file DarwinPlatform.cpp.

References llvm::Error::success().

◆ teardownJITDylib()

Error llvm::orc::DarwinPlatform::teardownJITDylib ( JITDylib & JD)
overridevirtual

This method will be called outside the session lock each time a JITDylib is removed to allow the Platform to remove any JITDylib-specific data.

Implements llvm::orc::Platform.

Definition at line 57 of file DarwinPlatform.cpp.

References llvm::Error::success().


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