Module: Create an LLVM module for one or more functions and variables

Description Usage Arguments Value Author(s) References See Also

Description

When creating an LLVM routine/function, we have to house it in a module. This function and class allows us to create such a module.

Optimize is used to perform the LLVM optimizations on the code.

Usage

1
2
3
4
Module(id, context = NULL)

getGlobalVariables(module)
getGlobalVariable(module, var, allowInternal = TRUE) 

Arguments

id

a string giving the name of the module

context

the LLVM context in which to create the module. The default is the global context

module

the module containing the global variable(s)

var

the name of the global variable

allowInternal

a logical controlling whether to permit access to no exported variables.

Value

An object of class Module

Author(s)

Duncan Temple Lang

References

LLVM Documentation http://llvm.org/docs/

See Also

getGlobalValue and ExecutionEngine


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