.llvm | R Documentation |
These functions provide the mechanism to call an LLVM
Function
, passing it R objects as arguments.
This is analogous to the .C
interface,
but for routines generated via LLVM, either read from
existing files or generated in the R session.
.llvm(.x, ..., .args = list(...),
.ee = ExecutionEngine(as(.x, "Module")),
.all = FALSE, .duplicate = .duplicateArgs(.x),
.ffi = TRUE)
.x |
the reference to the LLVM |
... |
arguments for the |
.args |
an alternative way mechanism to pass the arguments for
the |
.ee |
the LLVM |
.all |
a logical value that controls whether all of the arguments
are also returned, or just the return value from the |
.duplicate |
a logical vector indicating which arguments need to
be copied before being passed to the |
.ffi |
a logical value or a |
If .all
is FALSE
, the return value from Function
is returned as an R object.
Duncan Temple Lang
The RLLVMCompile
package
parseIR
Module
, Function
module = parseIR(system.file("IR", "fib.ll", package = "Rllvm"))
.llvm(module$fib, 11)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.