tests2/onePlusPi.R

library(R2llvm)
# infer_types can't handle global variables yet.
f = function() 1 + pi

#R2llvm should recognize this as a constant.

f = compileFunction(f, optimize = FALSE)
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.