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