This function creates an LLVM Function
object and creates the initial Block
and
populates it with local variables that access the parameter values.
simpleFunction(.name, retType = VoidType, ..., .types = list(...), mod = Module())
the name of the function/routione
the return type of the routine
individual type objects for the parameters of the routine
the parameter types specified as a single object
the module in which to create the function
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.
LLVM Documentation http://llvm.org/docs/