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