duncantl/Rllvm: Interface to llvm for dynamically compiling native code.

This package is an interface to some of the functionality in the LLVM toolkit for programmatically constructing native code and also comprehensively analyzing native code. This allows us to build "compilers" in R and use LLVM's optmization and JIT techniques to improve the code we generate and then turn it into machine code. This is currently not a compiler. There are examples that illustrate how to generate code to create native functions that are equivalent to some simple R functions. The goal is to build on this and create a compiler, hopefully building on the framework that Luke Tierney has created in his compiler package (see http://www.cs.uiowa.edu/~luke/R/compiler/). This is in the RLLVCompile package. The speed up we achieve compiling R code in our examples illustrate that we can significantly outperform the R interpreter and also can outperform some of R's vectorized code by rearranging the computations, e.g. fusing loops, avoiding memory usage.

Getting started

Package details

AuthorDuncan Temple Lang, Vince Buffalo
MaintainerDuncan Temple Lang <duncan@r-project.org>
LicenseGPL-2
Version0.14-0
URL https://github.com/duncantl/Rllvm
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("duncantl/Rllvm")
duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.