reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/PeepholeOptimizer.cpp
  467   if (MRI->hasOneNonDBGUse(SrcReg))
  473   const TargetRegisterClass *DstRC = MRI->getRegClass(DstReg);
  484       TRI->getSubClassWithSubReg(MRI->getRegClass(SrcReg), SubIdx) != nullptr;
  489   for (MachineInstr &UI : MRI->use_nodbg_instructions(DstReg))
  499   for (MachineOperand &UseMO : MRI->use_nodbg_operands(SrcReg)) {
  566     for (MachineInstr &UI : MRI->use_nodbg_instructions(DstReg))
  570     const TargetRegisterClass *RC = MRI->getRegClass(SrcReg);
  580         MRI->clearKillFlags(DstReg);
  581         MRI->constrainRegClass(DstReg, DstRC);
  584       Register NewVR = MRI->createVirtualRegister(RC);
  617   if (TII->optimizeCompareInstr(MI, SrcReg, SrcReg2, CmpMask, CmpValue, MRI)) {
  668   const TargetRegisterClass *DefRC = MRI->getRegClass(Reg);
  681     ValueTracker ValTracker(CurSrcPair.Reg, CurSrcPair.SubReg, *MRI, TII);
  730       const TargetRegisterClass *SrcRC = MRI->getRegClass(CurSrcPair.Reg);
 1195     RegSubRegPair NewSrc = getNewSource(MRI, TII, TrackPair, RewriteMap,
 1203       MRI->clearKillFlags(NewSrc.Reg);
 1228   RegSubRegPair NewSrc = getNewSource(MRI, TII, Def, RewriteMap);
 1231   const TargetRegisterClass *DefRC = MRI->getRegClass(Def.Reg);
 1232   Register NewVReg = MRI->createVirtualRegister(DefRC);
 1247   MRI->replaceRegWith(Def.Reg, NewVReg);
 1248   MRI->clearKillFlags(NewVReg);
 1252   MRI->clearKillFlags(NewSrc.Reg);
 1323       MRI->hasOneNonDBGUser(Reg)) {
 1368     if (TII->FoldImmediate(MI, *II->second, Reg, MRI)) {
 1424   if (MRI->getRegClass(DstReg) != MRI->getRegClass(PrevDstReg))
 1424   if (MRI->getRegClass(DstReg) != MRI->getRegClass(PrevDstReg))
 1427   MRI->replaceRegWith(DstReg, PrevDstReg);
 1430   MRI->clearKillFlags(PrevDstReg);
 1435   return Register::isPhysicalRegister(Reg) && !MRI->isAllocatable(Reg);
 1505   if (!MRI->hasOneNonDBGUse(Reg))
 1512   MachineInstr &MI = *(MRI->use_instr_nodbg_begin(Reg));
 1605   MRI = &MF.getRegInfo();
 1770                     TII->optimizeLoadInstr(*MI, MRI, FoldAsLoadDefReg, DefMI)) {
 1782               MRI->markUsesInDebugValueAsUndef(FoldedReg);