getBuiltInRoutines: Specify list of Available Compiled Routines

Description Usage Arguments Value Author(s) See Also Examples

Description

getBuiltInRoutines is a function that returns a list of existing, compiled routines that are available for use by generated code using RLLVMCompile. Each routine has information about its return type and its parameter types. There is an existing collection of routines. One can also specify additional routines or override the details of existing ones in a call to getBuiltInRoutines.

Usage

1
getBuiltInRoutines(..., env = NULL, useFloat = FALSE)

Arguments

...

name=value pairs of function names and descriptions. Each element can be either an LLVM Function object or a list specifying the return type and the parameter types.

env

an environment in which to find an existing computed list of routine descrptions stored in the variable .builtInRoutines. This is used to generate and compute this list just once.

useFloat

a logical value. If this is TRUE, the basic routines are defined to use float rather than double. This is useful for generating code for GPUs.

Value

A list.

Author(s)

Duncan Temple Lang

See Also

compileFunction

Examples

1
2
3
4
5
 rr = getBuiltInRoutines()
 names(rr)

 rr = getBuiltInRoutines(foo = list(Int32Type))
 names(rr)

duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.