tests/strcmp.R

f =
function(x)
{
   x == "bob"
}

library(RLLVMCompile)
trace(llvmAddSymbol)
llvmAddSymbol("strcmp")
fc = compileFunction(f, Int32Type, list(StringType))

showModule(fc)
#
#.llvm(fc, "jane")
#ee = ExecutionEngine(as(fc, "Module"))
#.llvm(fc, "jane", .ee = ee)
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.