getModuleFunctions: Get a list of the functions in an LLVM module

View source: R/module.R

getModuleFunctionsR Documentation

Get a list of the functions in an LLVM module

Description

This function returns a named list of the functions that exist in an LLVM module.

Usage

getModuleFunctions(mod)

Arguments

mod

the Module object.

Value

A named list.

Author(s)

Duncan Temple Lang

References

The LLVM API documentation.

See Also

Module, Function

Examples

 library(Rllvm)
 InitializeNativeTarget()

  mod = Module("opt")
  fun = Function("iadd", Int32Type, c(x = Int32Type, y = Int32Type),  mod)
   # Now build the code for the function
   #       .........

  getModuleFunctions(mod)

duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.