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

Description Usage Arguments Value Author(s) References See Also Examples

Description

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

Usage

1

Arguments

mod

the Module object.

Value

A named list.

Author(s)

Duncan Temple Lang

References

The LLVM API documentation.

See Also

Module, Function

Examples

1
2
3
4
5
6
7
8
9
 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)

doktorschiwago/Rllvm2 documentation built on May 15, 2019, 9:42 a.m.