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/R2llvm documentation built on May 14, 2019, 9:42 a.m.