agx: Control flow support
This is a mostly complete impl of instruction selection for loops, based on Dougall's notes. Missing lots of opts.
Draft because there's still no RA so there's an awful hack based on nir from_ssa. Might land everything else, but then loops tests will choke on phi nodes.