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)
def add_module_provider(self, mp): core.check_is_module_provider(mp) _core.LLVMAddModuleProvider(self.ptr, mp.ptr) mp._own(self)
def new(mp): core.check_is_module_provider(mp) return FunctionPassManager(_core.LLVMCreateFunctionPassManager(mp.ptr))