def numba_buffer_adaptor(self, buf, ptr):
    fnty = Type.function(Type.void(), [ir.PointerType(self.py_buffer_t), self.voidptr])
    fn = self._get_function(fnty, name='numba_adapt_buffer')
    fn.args[0].add_attribute(lc.ATTR_NO_CAPTURE)
    fn.args[1].add_attribute(lc.ATTR_NO_CAPTURE)
    return self.builder.call(fn, (buf, ptr))
def numba_buffer_adaptor(self, buf, ptr):
    fnty = Type.function(Type.void(), [ir.PointerType(self.py_buffer_t), self.voidptr])
    fn = self._get_function(fnty, name='numba_adapt_buffer')
    fn.args[0].add_attribute(lc.ATTR_NO_CAPTURE)
    fn.args[1].add_attribute(lc.ATTR_NO_CAPTURE)
    return self.builder.call(fn, (buf, ptr))