glsl/ir: add subroutine lowering pass (v2.3)