Rllvm (version 0.7-0)

getModuleFunctions: 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.

References

The LLVM API documentation.

See Also

Module, Function

Examples

Run this code
# NOT RUN {
 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)
# }

Run the code above in your browser using DataLab