nv50/ir/tgsi: add support for atomics
nv50/ir: add support for barriers

nv50 part by Francisco Jerez.
nvc0: implement compute support for nve4