tests/serialize3_a.R

library(RLLVMCompile)

f =
function(x)
{
  x[1] = 3.1415
  x[1]
}

fc = compileFunction(f, DoubleType, pointerType(DoubleType))
.llvm(fc, 3)

m = as(fc, "Module")
ir = showModule(m, TRUE)
save(ir, file = "ir.rda")
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.