This adds partial instruction selection support for llvm.aarch64.stlxr.
It also factors out selection for G_INTRINSIC_W_SIDE_EFFECTS into its own function. Originally, we were only allowing G_INTRINSIC_W_SIDE_EFFECTS instructions where the 0th operand was the intrinsic ID. This new function does away with that restriction.
Also add a test, and add a GISel line to arm64-ldxr-stxr.ll.
While we're moving this around can you change this to MIRBuilder instead.