Module | R Documentation |
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)
verifyModule(module, error = TRUE)
getGlobalVariables(module)
getGlobalVariable(module, var, allowInternal = TRUE)
id |
a string giving the name of the module |
context |
the LLVM context in which to create the module. The default is the global context |
module |
the module containing the global variable(s) |
var |
the name of the global variable |
allowInternal |
a logical controlling whether to permit access to no exported variables. |
error |
a logical value that controls whether to throw an error if the verification of the module is not successful, or just return the diagnostic error message. |
An object of class Module
Duncan Temple Lang
LLVM Documentation http://llvm.org/docs/
getGlobalValue
and ExecutionEngine
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.