getDefinedRoutines | R Documentation |
This function examines an LLVM Module-class
and returns a named list of the Function-class
/routine
objects that have a body, i.e., that are implemented in the module.
This excludes the Function-class
objects
that are only declarations in the Module-class
.
getDefinedRoutines(file, module = parseIR(file), names = TRUE, dropInternal = TRUE)
file |
either the path to a file containing the LLVM IR code or a |
module |
a |
names |
a logical value controlling whether only the names of the defined
routines are returned or the named-list of |
dropInternal |
a logical value controlling whether to omit
routines whose names start with the |
If names
is TRUE
, a character
list containing the names of the routines.
If names
is FALSE
, a named list
whose elements are the LLVM Function-class
objects
Duncan Temple Lang
parseIR
, Module
f = system.file("IR", "fib.ir", package = "Rllvm")
r = getDefinedRoutines(f, names = FALSE)
names(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.