Learn R Programming

Rllvm (version 0.7-0)

ExecutionEngine: Create LLVM engine for calling functions

Description

This function allows us to create the execution engine that allows us to invoke the functions we generated and access the global variables we defined.

We can also access variables and functions as native objects using getPointerToGlobal, getPointerToFunction, and retrieve Function objects by name via findFunction.

Usage

ExecutionEngine(module, optimizationLevel = CodeGenOpt_Default)

Arguments

module

the LLVM module object

optimizationLevel

an integer enumerated constant value from the CodeGenOpt family of variables that controls the optimization level the engine uses when generating code.

Value

An object of class ExecutionEngine-class.

References

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