Method AddEagerlyCompiledModule
AddEagerlyCompiledModule(BitcodeModule, LLVMOrcSymbolResolverFn)
Add a module to the engine
Declaration
public ulong AddEagerlyCompiledModule(BitcodeModule bitcodeModule, LLVMOrcSymbolResolverFn resolver)
Parameters
public ulong AddEagerlyCompiledModule(BitcodeModule bitcodeModule, LLVMOrcSymbolResolverFn resolver)
BitcodeModule | bitcodeModule | The module to add to the engine |
Llvm.NET.Interop.LLVMOrcSymbolResolverFn | resolver | Symbol resolver delegate |
Returns
UInt64 | Handle for the module in the engine |
Implements
Remarks
warning
Ownership of the bitcodeModule
is transfered to the JIT engine and therefore,
after successful completion of this call the module reports as disposed.
important
The resolver
must not throw an exception as the native LLVM JIT engine
won't understand it and would leave the engine and LLVM in an inconsistent state. If the
symbol isn't found LLVM generates an error message in debug builds and in all builds, terminates
the application.