'The indexing helper is built using alloca for each value, so it
actually contains pointers to the actual indices to load. Note
that update_indices assumes the same. This method returns the
indices as values'

def as_values(self):

    bld = self.array.builder
    return [bld.load(index) for index in self.indices]
