mkCallProxy: Create an R Function to call an LLVM Routine

View source: R/mkCallProxy.R

mkCallProxyR Documentation

Create an R Function to call an LLVM Routine

Description

This creates a wrapper/proxy R function to call an LLVM routine. This creates an LLVM routine that accepts R objects and marshalls these as arguments to the native routine.

Usage

mkCallProxy(fun, name = paste0("R_", getName(fun)), mod = as(fun, "Module"))

Arguments

fun

the LLVM Function-class object for which we are creating a proxy

name

the name of the

mod

Value

An R function

Author(s)

Duncan Temple Lang

See Also

simpleFunction Function-class .llvm

Examples

  f = system.file("IR/fib.ir", package = "Rllvm")
  m = parseIR(f)
  rf = mkCallProxy(m$fib)

duncantl/Rllvm documentation built on May 13, 2024, 7:45 p.m.