[globalisel][tablegen] Keep track of the insertion point while adding BuildMIAction's. NFC
[globalisel][tablegen] Keep track of the insertion point while adding BuildMIAction's. NFC

Multi-instruction emission needs to ensure the the instructions are generated
a depth-first fashion. For example:
  (ADDWrr (SUBWrr a, b), c)
needs to emit the SUBWrr before the ADDWrr. However, our walk over
TreePatternNode's is highly context sensitive which makes it difficult to append
BuildMIActions in the order we want. To fix this, we now keep track of the
insertion point as we add actions. This will allow multi-insn emission to insert
BuildMI's in the correct place.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@317029 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit b89bb4ebdb42c59ba488410e3ee3380fdca25f26)

apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm