These functions allows us to help the dynamic
symbol resolution mechanism in LLVM
to find external symbols such as global variables
or routines that we reference in our generated
code. We can load entire DLLs and allow
LLVM search for references to symbols in these.
We can also use llvmAddSymbol
to
explicitly register individual symbols
rather than entire DLLs.
llvmAddSymbol(..., .syms = list(...))
llvmLoadDLL(libs)
a collection of name = symbol
values
one can specify the named list of external pointer symbols rather than using the … mechanism. This is convenient when the symbols are already in a list.
a character vector giving the names of the DLLs to load. These should be fully qualified file names or relative to the current directory.
llvmLoadDLL
returns a logical vector indicating which were
successful or not.
llvmAddSymbol
returns NULL
.
LLVM documentation for DynamicLibrary class.