nir: Add a helper for getting a nir_op from an atomic intrinsic
Atomic intrinsics are a mess and, while this doesn't entirely eliminate the mess, it helps substantially by letting you write semi-generic code that doesn't have to care about the memory space and can just look at atomics in terms of the nir_op they perform.