nir: add a pass to convert to SSA
XXX more test stuff