explorations/dotTypeInfo.R

library(RLLVMCompile)

cb =
function(x, y)
{
     .typeInfo(DoubleType, Int32Type, DoubleType)
     x + y
}

m = Module()
ee = ExecutionEngine(m)
fc = compileFunction(cb, module = m, .ee = ee, .fixIfAssign = FALSE)


.llvm(fc, 2L, 3, .ee = ee)
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.