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
.
ExecutionEngine(module, optimizationLevel = CodeGenOpt_Default)
the LLVM module object
an integer enumerated constant value from the CodeGenOpt family of variables that controls the optimization level the engine uses when generating code.
An object of class ExecutionEngine-class
.
LLVM Documentation http://llvm.org/docs/