This patch accompanies the RFC Setting MachineInstr flags through storeRegToStackSlot, see there for a full description of the problem and motivation.
This patch takes the approach of adding a MachineInstr::MIFlag parameter to storeRegToStackSlot. In its current state, it is meant to illustrate the proposal. A similar change should be made to loadRegFromStackSlot.