Description Usage Arguments Author(s) References
These functions allow us to create constants in LLVM code. There are functions for the different common types.
1 2 3 4 5 6 7 8 | createLogicalConstant(val, context = getGlobalContext())
createConstant(builder, val, type = NULL,
context = if(!missing(builder))
as(builder, "LLVMContext")
else
getGlobalContext())
createIntegerConstant(val, context = getGlobalContext(), ...)
createFloatingPointConstant(val, context, type)
|
val |
the value of the constant. This can be a literal in R |
context |
the LLVMContext |
type |
the type for this constant. This should be an object of
class |
builder |
the IRBuilder object |
... |
additional parameters for the specific methods |
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.