ΒΆvoid LLVMOrcExecutionSessionLookup(
LLVMOrcExecutionSessionRef ES,
LLVMOrcLookupKind K,
LLVMOrcCJITDylibSearchOrder SearchOrder,
size_t SearchOrderSize,
LLVMOrcCLookupSet Symbols,
size_t SymbolsSize,
LLVMOrcExecutionSessionLookupHandleResultFunction
HandleResult,
void* Ctx)
void LLVMOrcExecutionSessionLookup(
LLVMOrcExecutionSessionRef ES,
LLVMOrcLookupKind K,
LLVMOrcCJITDylibSearchOrder SearchOrder,
size_t SearchOrderSize,
LLVMOrcCLookupSet Symbols,
size_t SymbolsSize,
LLVMOrcExecutionSessionLookupHandleResultFunction
HandleResult,
void* Ctx)
Description
Look up symbols in an execution session. This is a wrapper around the general ExecutionSession::lookup function. The SearchOrder argument contains a list of (JITDylibs, JITDylibSearchFlags) pairs that describe the search order. The JITDylibs will be searched in the given order to try to find the symbols in the Symbols argument. The Symbols argument should contain a null-terminated array of (SymbolStringPtr, SymbolLookupFlags) pairs describing the symbols to be searched for. This function takes ownership of the elements of the Symbols array. The Name fields of the Symbols elements are taken to have been retained by the client for this function. The client should *not* release the Name fields, but are still responsible for destroying the array itself. The HandleResult function will be called once all searched for symbols have been found, or an error occurs. The HandleResult function will be passed an LLVMErrorRef indicating success or failure, and (on success) a null-terminated LLVMOrcCSymbolMapPairs array containing the function result, and the Ctx value passed to the lookup function. The client is fully responsible for managing the lifetime of the Ctx object. A common idiom is to allocate the context prior to the lookup and deallocate it in the handler. THIS API IS EXPERIMENTAL AND LIKELY TO CHANGE IN THE NEAR FUTURE!
Declared at: llvm/include/llvm-c/Orc.h:568
Parameters
- LLVMOrcExecutionSessionRef ES
- LLVMOrcLookupKind K
- LLVMOrcCJITDylibSearchOrder SearchOrder
- size_t SearchOrderSize
- LLVMOrcCLookupSet Symbols
- size_t SymbolsSize
- LLVMOrcExecutionSessionLookupHandleResultFunction HandleResult
- void* Ctx