def get_buffer(self, obj, pbuf):
    fnty = Type.function(Type.int(), [self.pyobj, ir.PointerType(self.py_buffer_t)])
    fn = self._get_function(fnty, name='numba_get_buffer')
    return self.builder.call(fn, [obj, pbuf])
def get_buffer(self, obj, pbuf):
    fnty = Type.function(Type.int(), [self.pyobj, ir.PointerType(self.py_buffer_t)])
    fn = self._get_function(fnty, name='numba_get_buffer')
    return self.builder.call(fn, [obj, pbuf])