https://github.com/duncantl/RLLVMCompile
Raw File
Tip revision: 7fad5bd394a6f74ace0f6053a5d08e4f15cf3a1f authored by Duncan Temple Lang on 07 March 2017, 00:49:31 UTC
correct name for variable
Tip revision: 7fad5bd
vince_test.R
source('load.R')

# Run existing tests
invisible(sapply(list.files("tests", pattern = ".R$", full.names = TRUE), source))

if (FALSE) {
  # some code to build empty basic functions
  mod = Module("sandbox")
  fun = Function("sandbox_not", retType=Int1Type, list(x=Int32Type), module=mod)
  block = Block(fun, "entry")
  ir = IRBuilder(block)
  params = getParameters(fun)

  ir$createReturn()
  
  ir$createReturn(x)

  showModule(mod)
}

back to top