示例#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
 def new(mp):
     core.check_is_module_provider(mp)
     return FunctionPassManager(_core.LLVMCreateFunctionPassManager(mp.ptr))