Learn R Programming

RLLVMCompile (version 0.2-0)

getBuiltInRoutines: Specify list of Available Compiled Routines

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

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.

See Also

compileFunction

Examples

Run this code
 rr = getBuiltInRoutines()
 names(rr)

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

Run the code above in your browser using DataLab