tests/unary.R

library(RLLVMCompile)

f =
function(x)
  - x

fc = compileFunction(f, Int32Type, Int32Type)
.llvm(fc, 20)


g =
function()
  - 9
gc = compileFunction(g, Int32Type)
.llvm(gc)

h =
function()
  +2
hc = compileFunction(h, Int32Type)
.llvm(hc)
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.