def new(module, force_interpreter=False): core.check_is_module(module) _util.check_is_unowned(module) ret = _core.LLVMCreateExecutionEngine(module.ptr, int(force_interpreter)) if isinstance(ret, str): raise llvm.LLVMException(ret) return ExecutionEngine(ret, module)
def remove_module(self, module): core.check_is_module(module) if module.owner != self: raise llvm.LLVMException("module is not owned by self") ret = _core.LLVMRemoveModule2(self.ptr, module.ptr) if isinstance(ret, str): raise llvm.LLVMException(ret) return core.Module(ret)
def remove_module(self, module): core.check_is_module(module) if module.owner != self: raise llvm.LLVMException, "module is not owned by self" ret = _core.LLVMRemoveModule2(self.ptr, module.ptr) if isinstance(ret, str): raise llvm.LLVMException, ret return core.Module(ret)
def new(module, force_interpreter=False): core.check_is_module(module) _util.check_is_unowned(module) ret = _core.LLVMCreateExecutionEngine(module.ptr, int(force_interpreter)) if isinstance(ret, str): raise llvm.LLVMException, ret return ExecutionEngine(ret, module)
def new(module): core.check_is_module(module) ptr = _core.LLVMCreateFunctionPassManagerForModule(module.ptr) return FunctionPassManager(ptr)
def run(self, module): core.check_is_module(module) return _core.LLVMRunPassManager(self.ptr, module.ptr)
def add_module(self, module): core.check_is_module(module) _core.LLVMAddModule(self.ptr, module.ptr) module._own(self)
def new(module): core.check_is_module(module) _util.check_is_unowned(module) obj = _core.LLVMCreateEngineBuilder(module.ptr) return EngineBuilder(obj, module)