def numba_array_adaptor(self, ary, ptr):
    assert (not self.context.enable_nrt)
    fnty = Type.function(Type.int(), [self.pyobj, self.voidptr])
    fn = self._get_function(fnty, name='numba_adapt_ndarray')
    fn.args[0].add_attribute(lc.ATTR_NO_CAPTURE)
    fn.args[1].add_attribute(lc.ATTR_NO_CAPTURE)
    return self.builder.call(fn, (ary, ptr))
def numba_array_adaptor(self, ary, ptr):
    assert (not self.context.enable_nrt)
    fnty = Type.function(Type.int(), [self.pyobj, self.voidptr])
    fn = self._get_function(fnty, name='numba_adapt_ndarray')
    fn.args[0].add_attribute(lc.ATTR_NO_CAPTURE)
    fn.args[1].add_attribute(lc.ATTR_NO_CAPTURE)
    return self.builder.call(fn, (ary, ptr))