tests/neg.R

library(RLLVMCompile)
f = function(n) +n
fun = compileFunction(f, Int32Type, Int32Type)
.llvm(fun, 10)

g = function(n) -n
gun = compileFunction(g, Int32Type, Int32Type)
.llvm(gun, 10)
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.