Ejemplo n.º 1
0
 def free_machine_code_for(self, fn):
     core.check_is_function(fn)
     _core.LLVMFreeMachineCodeForFunction(self.ptr, fn.ptr)
Ejemplo n.º 2
0
 def run(self, fn):
     core.check_is_function(fn)
     return _core.LLVMRunFunctionPassManager(self.ptr, fn.ptr)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def get_pointer_to_function(self, fn):
     core.check_is_function(fn)
     return _core.LLVMGetPointerToFunction(self.ptr,fn.ptr)
Ejemplo n.º 5
0
 def run(self, fn):
     core.check_is_function(fn)
     return _core.LLVMRunFunctionPassManager(self.ptr, fn.ptr)
Ejemplo n.º 6
0
 def free_machine_code_for(self, fn):
     core.check_is_function(fn)
     _core.LLVMFreeMachineCodeForFunction(self.ptr, fn.ptr)
Ejemplo n.º 7
0
 def get_pointer_to_function(self, fn):
     core.check_is_function(fn)
     return _core.LLVMGetPointerToFunction(self.ptr, fn.ptr)
Ejemplo n.º 8
0
 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)