Beispiel #1
0
 def create_cpython_wrapper(self, library, fndesc, env, call_helper,
                            release_gil=False):
     wrapper_module = self.create_module("wrapper")
     fnty = self.call_conv.get_function_type(fndesc.restype, fndesc.argtypes)
     wrapper_callee = wrapper_module.add_function(fnty, fndesc.llvm_func_name)
     builder = PyCallWrapper(self, wrapper_module, wrapper_callee,
                             fndesc, env, call_helper=call_helper,
                             release_gil=release_gil)
     builder.build()
     library.add_ir_module(wrapper_module)
Beispiel #2
0
 def create_cpython_wrapper(self, library, fndesc, env, call_helper,
                            release_gil=False):
     wrapper_module = self.create_module("wrapper")
     fnty = self.call_conv.get_function_type(fndesc.restype, fndesc.argtypes)
     wrapper_callee = wrapper_module.add_function(fnty, fndesc.llvm_func_name)
     builder = PyCallWrapper(self, wrapper_module, wrapper_callee,
                             fndesc, env, call_helper=call_helper,
                             release_gil=release_gil)
     builder.build()
     library.add_ir_module(wrapper_module)
Beispiel #3
0
 def create_cpython_wrapper(self, library, fndesc, exceptions,
                            release_gil=False):
     wrapper_module = self.create_module("wrapper")
     fnty = self.get_function_type(fndesc)
     wrapper_callee = wrapper_module.add_function(fnty, fndesc.llvm_func_name)
     builder = PyCallWrapper(self, wrapper_module, wrapper_callee,
                             fndesc, exceptions=exceptions,
                             release_gil=release_gil)
     builder.build()
     library.add_ir_module(wrapper_module)
Beispiel #4
0
 def create_cpython_wrapper(self,
                            library,
                            fndesc,
                            exceptions,
                            release_gil=False):
     wrapper_module = self.create_module("wrapper")
     fnty = self.get_function_type(fndesc)
     wrapper_callee = wrapper_module.add_function(fnty,
                                                  fndesc.llvm_func_name)
     builder = PyCallWrapper(self,
                             wrapper_module,
                             wrapper_callee,
                             fndesc,
                             exceptions=exceptions,
                             release_gil=release_gil)
     builder.build()
     library.add_ir_module(wrapper_module)