tests/literalArithType.R

library(RLLVMCompile)

f =
function(i)
{
   i - 1
}

fc = compileFunction(f, Int32Type, Int32Type)
.llvm(fc, 2)


g =
function(x, i)
{
   x[ i - 1 ]
}
gc = compileFunction(g, Int32Type, list(pointerType(Int32Type), Int32Type))
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.