layout: page |
title: ExecutionEngine (llvm.ee) |
Add a new module to the ExecutionEngine. The ownership is of module is transferred. When the ExecutionEngine is destroyed, the module is destroyed.
Release memory used for the machine code generated for the function fn.
Obtain the pointer to the function fn. This forces the ExecutionEngine to generate the machine code in lazy mode.
If fn is not defined, ExecutionEngine will lookup the symbol through dlsym.
The returned function pointer can be wrapped as a ctypes function.
Remove the module.
Execute the function fn with an iterable of arguments args which are of GenericValue. This method returns whatever that is returned by fn as a GenericValue.
Access the TargetData instance associated with the ExecutionEngine.