Example #1
0
 def new(mp, force_interpreter=False):
     core.check_is_module_provider(mp)
     core.check_is_unowned(mp)
     ret = _core.LLVMCreateExecutionEngine(mp.ptr, int(force_interpreter))
     if isinstance(ret, str):
         raise llvm.LLVMException, ret
     return ExecutionEngine(ret, mp)
Example #2
0
 def add_module_provider(self, mp):
     core.check_is_module_provider(mp)
     _core.LLVMAddModuleProvider(self.ptr, mp.ptr)
     mp._own(self)
Example #3
0
 def new(mp):
     core.check_is_module_provider(mp)
     return FunctionPassManager(_core.LLVMCreateFunctionPassManager(mp.ptr))