Description Usage Arguments Value Author(s) References
This function is used to create and initialize a global variable in an LLVM module.
1 2 3 | createGlobalVariable(id, mod, type = getType(val), val = NULL,
constant = FALSE, linkage = ExternalLinkage,
threadLocal = FALSE)
|
id |
the name of the variable, a character string |
val |
the initial value of the variable which can be
|
mod |
the module in which the variable is being defined |
type |
the type of the variable |
constant |
a logical value indicatingwhether the variable is constant or can be changed. |
linkage |
the linkage model for the variable, typically |
threadLocal |
a logical value indicating whether the variable is thread-specific or truly global |
An object of class GlobalVariable
.
Duncan Temple Lang
LLVM Documentation http://llvm.org/docs/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.