class DefinitionGenerator

Declaration

class 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/include/llvm/ExecutionEngine/Orc/Core.h:911

Method Overview

  • public virtual 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 virtual ~DefinitionGenerator()

Methods

virtual 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/include/llvm/ExecutionEngine/Orc/Core.h:921

Parameters

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

virtual ~DefinitionGenerator()

Declared at: llvm/include/llvm/ExecutionEngine/Orc/Core.h:913