tests/dynLoadCall.R

library(RLLVMCompile)
if(file.exists("testAlloc.so")) {
 dyn.load("testAlloc.so")
 llvmAddSymbol("sayHi")
 mod = Module()
 declareFunction(list(VoidType), "sayHi", mod)

 f = function() sayHi()
 fc = compileFunction(f, VoidType, module = mod)
}

# .llvm(fc)
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.