nir: Add a pass for gathering various bits of shader info