Rllvm (version 0.7-0)

simpleFunction: Define the skeleton of an LLVM Function

Description

This function creates an LLVM Function object and creates the initial Block and populates it with local variables that access the parameter values.

Usage

simpleFunction(.name, retType = VoidType, ..., .types = list(...), mod = Module())

Arguments

.name

the name of the function/routione

retType

the return type of the routine

individual type objects for the parameters of the routine

.types

the parameter types specified as a single object

mod

the module in which to create the function

.createLocalVars

a logical value. If this is TRUE, we create local variables correspoding to each of the parameters and arrange to store the value of the parameter in that local variable. This is the general idiom clang uses to create code in the unoptimized form.

References

LLVM Documentation http://llvm.org/docs/