OrcCreateCustomCAPIDefinitionGenerator method.
LLVMErrorRef (*invoke) (
LLVMOrcDefinitionGeneratorRef GeneratorObj,
void *Ctx,
LLVMOrcLookupStateRef *LookupState,
LLVMOrcLookupKind Kind,
LLVMOrcJITDylibRef JD,
LLVMOrcJITDylibLookupFlags JDLookupFlags,
LLVMOrcCLookupSet LookupSet,
size_t LookupSetSize
)
| Modifier and Type | Method and Description |
|---|---|
| public default void | callback(long
a pointer to the memory used for the function's return value.
ret, long If the function is declared as returning Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as
a vector of pointers to memory holding the arguments to the function args)Implements org. |
| public default FFICIF | getCallInterface()
Implements org. |
| public long | invoke(long
will contain the address of the custom generator object GeneratorObj, long will contain the context object passed to Ctx, long LLVMOrcCreateCustomCAPIDefinitionGenerator.will contain a pointer to an LookupState, int LLVMOrcLookupStateRef object.
This can optionally be modified to make the definition generation process asynchronous: If the can be inspected to determine the lookup kind (e.g. as-if-during-static-link, or as-if-during-dlsym) Kind, long specifies which JD, int JITDylib the definitions should be generated intocan be inspected to determine whether the original lookup included non-exported symbols JDLookupFlags, long contains the set of symbols that could not be found in LookupSet, long LookupSetSize)JD already (the set of generation candidates)A custom generator function. |
| CIF | back to summary |
|---|---|
| public static final FFICIF CIF | |
| callback | back to summary |
|---|---|
| public default void callback(long ret, long args) Implements org. Doc from org. The Java method that will be called from native code when the native callback function is invoked.
| |
| getCallInterface | back to summary |
|---|---|
| public default FFICIF getCallInterface() Implements org. Doc from org. Returns the libffi Call Interface for this callback function. [INTERNAL API] | |
| invoke | back to summary |
|---|---|
| public long invoke(long GeneratorObj, long Ctx, long LookupState, int Kind, long JD, int JDLookupFlags, long LookupSet, long LookupSetSize) A custom generator function. This can be used to create a custom generator object using
| |