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/R2llvm documentation built on May 14, 2019, 9:42 a.m.