class CAPIDefinitionGenerator

Declaration

class CAPIDefinitionGenerator : public DefinitionGenerator { /* full declaration omitted */ };

Description

Definition generators can be attached to JITDylibs to generate new definitions for otherwise unresolved symbols during lookup.

Declared at: llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp:281

Inherits from: DefinitionGenerator

Member Variables

private LLVMOrcDisposeCAPIDefinitionGeneratorFunction Dispose
private void* Ctx
private LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction TryToGenerate

Method Overview

  • public CAPIDefinitionGenerator(LLVMOrcDisposeCAPIDefinitionGeneratorFunction Dispose, void * Ctx, LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction TryToGenerate)
  • public llvm::Error tryToGenerate(llvm::orc::LookupState & LS, llvm::orc::LookupKind K, llvm::orc::JITDylib & JD, llvm::orc::JITDylibLookupFlags JDLookupFlags, const llvm::orc::SymbolLookupSet & LookupSet)
  • public ~CAPIDefinitionGenerator()

Inherited from DefinitionGenerator:

Methods

CAPIDefinitionGenerator(
    LLVMOrcDisposeCAPIDefinitionGeneratorFunction
        Dispose,
    void* Ctx,
    LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction
        TryToGenerate)

Declared at: llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp:283

Parameters

LLVMOrcDisposeCAPIDefinitionGeneratorFunction Dispose
void* Ctx
LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction TryToGenerate

llvm::Error tryToGenerate(
    llvm::orc::LookupState& LS,
    llvm::orc::LookupKind K,
    llvm::orc::JITDylib& JD,
    llvm::orc::JITDylibLookupFlags JDLookupFlags,
    const llvm::orc::SymbolLookupSet& LookupSet)

Description

DefinitionGenerators should override this method to insert new definitions into the parent JITDylib. K specifies the kind of this lookup. JD specifies the target JITDylib being searched, and JDLookupFlags specifies whether the search should match against hidden symbols. Finally, Symbols describes the set of unresolved symbols and their associated lookup flags.

Declared at: llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp:293

Parameters

llvm::orc::LookupState& LS
llvm::orc::LookupKind K
llvm::orc::JITDylib& JD
llvm::orc::JITDylibLookupFlags JDLookupFlags
const llvm::orc::SymbolLookupSet& LookupSet

~CAPIDefinitionGenerator()

Declared at: llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp:288