nir: Use a switch in nir_inline_function_impl