This makes it possible to write llc -start-after, specifying a pass that
runs after StackProtector. Very useful, e.g. to write a regression test
for a machine pass, or to test a MIR-to-assembly partial pass pipeline.
This also fixes PR30324.
I've added the legalmir2asm.mir file to show how I intend to
use MIR-to-assembly testing for GlobalISel development, but I don't intend to commit that
test case as part of this patch. It's just an example of the kind of regression tests
this fix makes possible.