ExecutionEngine: Create LLVM engine for calling functions

Description Usage Arguments Value Author(s) References

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

1
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.

Author(s)

Duncan Temple Lang

References

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


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