예제 #1
0
파일: ee.py 프로젝트: fnoeding/exoself
 def free_machine_code_for(self, fn):
     core.check_is_function(fn)
     _core.LLVMFreeMachineCodeForFunction(self.ptr, fn.ptr)
예제 #2
0
파일: passes.py 프로젝트: mmcminn/llvm-py
 def run(self, fn):
     core.check_is_function(fn)
     return _core.LLVMRunFunctionPassManager(self.ptr, fn.ptr)
예제 #3
0
파일: ee.py 프로젝트: fnoeding/exoself
 def run_function(self, fn, args):
     core.check_is_function(fn)
     ptrs = _unpack_generic_values(args)
     gvptr = _core.LLVMRunFunction2(self.ptr, fn.ptr, ptrs)
     return GenericValue(gvptr)
예제 #4
0
파일: ee.py 프로젝트: afrolov/llvm-py
 def get_pointer_to_function(self, fn):
     core.check_is_function(fn)
     return _core.LLVMGetPointerToFunction(self.ptr,fn.ptr)
예제 #5
0
파일: passes.py 프로젝트: jrk/llvm-py
 def run(self, fn):
     core.check_is_function(fn)
     return _core.LLVMRunFunctionPassManager(self.ptr, fn.ptr)
예제 #6
0
파일: ee.py 프로젝트: BackupGGCode/llvm-py
 def free_machine_code_for(self, fn):
     core.check_is_function(fn)
     _core.LLVMFreeMachineCodeForFunction(self.ptr, fn.ptr)
예제 #7
0
파일: ee.py 프로젝트: BackupGGCode/llvm-py
 def get_pointer_to_function(self, fn):
     core.check_is_function(fn)
     return _core.LLVMGetPointerToFunction(self.ptr, fn.ptr)
예제 #8
0
파일: ee.py 프로젝트: BackupGGCode/llvm-py
 def run_function(self, fn, args):
     core.check_is_function(fn)
     ptrs = _unpack_generic_values(args)
     gvptr = _core.LLVMRunFunction2(self.ptr, fn.ptr, ptrs)
     return GenericValue(gvptr)