23 ChangingAllUsesOfReg.insert(&ChangingMI);
28 for (
auto *ChangedMI : ChangingAllUsesOfReg)
34 : MF(MF), Delegate(Del) {
This class represents lattice values for constants.
void resetDelegate(Delegate *delegate)
Reset the currently registered delegate - otherwise assert.
void finishedChangingAllUsesOfReg()
All instructions reported as changing by changingAllUsesOfReg() have finished being changed...
void setDelegate(Delegate *delegate)
Set the delegate.
unsigned const MachineRegisterInfo * MRI
void changingAllUsesOfReg(const MachineRegisterInfo &MRI, unsigned Reg)
All the instructions using the given register are being changed.
virtual void changingInstr(MachineInstr &MI)=0
This instruction is about to be mutated in some way.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
RAIIDelegateInstaller(MachineFunction &MF, MachineFunction::Delegate *Del)
iterator_range< use_instr_iterator > use_instructions(unsigned Reg) const
virtual void changedInstr(MachineInstr &MI)=0
This instruction was mutated in some way.