tests/numericCall.R

library(RLLVMCompile)
f = function(n) {  x = numeric(n) ; x[1] = 1; x}
fc = compileFunction(f, REALSXPType, Int32Type)
# ??? Does this work  showModule(fc)
#  Do we need to protect the new vector?
#  Should we have a GEP?
.llvm(fc, 10)
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.