예제 #1
0
파일: ee.py 프로젝트: fnoeding/exoself
 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)
예제 #2
0
파일: ee.py 프로젝트: fnoeding/exoself
 def add_module_provider(self, mp):
     core.check_is_module_provider(mp)
     _core.LLVMAddModuleProvider(self.ptr, mp.ptr)
     mp._own(self)
예제 #3
0
파일: passes.py 프로젝트: fnoeding/exoself
 def new(mp):
     core.check_is_module_provider(mp)
     return FunctionPassManager(_core.LLVMCreateFunctionPassManager(mp.ptr))