Learn R Programming

Rllvm (version 0.7-0)

llvmAddSymbol: Resolving external symbols

Description

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.

Usage

llvmAddSymbol(..., .syms = list(...))
llvmLoadDLL(libs)

Arguments

a collection of name = symbol values

.syms

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.

libs

a character vector giving the names of the DLLs to load. These should be fully qualified file names or relative to the current directory.

Value

llvmLoadDLL returns a logical vector indicating which were successful or not. llvmAddSymbol returns NULL.

References

LLVM documentation for DynamicLibrary class.

See Also

getNativeSymbolInfo