tests/nullComparison.R

library(RLLVMCompile)
f =
function(x)
  x != NULL

m = Module()
fc = compileFunction(f, Int1Type, pointerType(DoubleType), module = m)

.llvm(fc, c(1, 2))
.llvm(fc, new("externalptr"))

# getNULLPointer(pointerType(DoubleType)))
duncantl/RLLVMCompile documentation built on May 15, 2019, 5:31 p.m.