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/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.