nv50/ir/nir: add loadFrom and storeTo helpler