When creating an LLVM routine/function, we have to house it in a module. This function and class allows us to create such a module.
Optimize
is used to perform the LLVM optimizations on the code.
Module(id, context = NULL)getGlobalVariables(module)
getGlobalVariable(module, var, allowInternal = TRUE)
a string giving the name of the module
the LLVM context in which to create the module. The default is the global context
the module containing the global variable(s)
the name of the global variable
a logical controlling whether to permit access to no exported variables.
An object of class Module
LLVM Documentation http://llvm.org/docs/