def free_machine_code_for(self, fn): core.check_is_function(fn) _core.LLVMFreeMachineCodeForFunction(self.ptr, fn.ptr)
def run(self, fn): core.check_is_function(fn) return _core.LLVMRunFunctionPassManager(self.ptr, fn.ptr)
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)
def get_pointer_to_function(self, fn): core.check_is_function(fn) return _core.LLVMGetPointerToFunction(self.ptr,fn.ptr)
def get_pointer_to_function(self, fn): core.check_is_function(fn) return _core.LLVMGetPointerToFunction(self.ptr, fn.ptr)