def nrt_adapt_buffer_from_python(self, buf, ptr):
    assert self.context.enable_nrt
    fnty = Type.function(Type.void(), [Type.pointer(self.py_buffer_t), self.voidptr])
    fn = self._get_function(fnty, name='NRT_adapt_buffer_from_python')
    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 nrt_adapt_buffer_from_python(self, buf, ptr):
    assert self.context.enable_nrt
    fnty = Type.function(Type.void(), [Type.pointer(self.py_buffer_t), self.voidptr])
    fn = self._get_function(fnty, name='NRT_adapt_buffer_from_python')
    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))