glsl: convert more of the linker to a NIR based linker
This is a step closer to to having a full NIR based GLSL linker which will allow improvements like doing NIR optimisations at compile time to reduce memory taken up by unfreed shaders, and speed up link times.
Edited by Timothy Arceri