Lines Matching refs:RegUnit
75 dbgs() << PrintVRegOrUnit(P.RegUnit, TRI); in dump()
83 dbgs() << PrintVRegOrUnit(P.RegUnit, TRI); in dump()
112 void RegPressureTracker::increaseRegPressure(unsigned RegUnit, in increaseRegPressure() argument
118 PSetIterator PSetI = MRI->getPressureSets(RegUnit); in increaseRegPressure()
127 void RegPressureTracker::decreaseRegPressure(unsigned RegUnit, in decreaseRegPressure() argument
130 decreaseSetPressure(CurrSetPressure, *MRI, RegUnit, PreviousMask, NewMask); in decreaseRegPressure()
322 unsigned RegUnit = Pair.RegUnit; in initLiveThru() local
323 if (TargetRegisterInfo::isVirtualRegister(RegUnit) in initLiveThru()
324 && !RPTracker.hasUntiedDef(RegUnit)) in initLiveThru()
325 increaseSetPressure(LiveThruPressure, *MRI, RegUnit, 0, Pair.LaneMask); in initLiveThru()
330 unsigned RegUnit) { in getRegLanes() argument
332 [RegUnit](const RegisterMaskPair Other) { in getRegLanes()
333 return Other.RegUnit == RegUnit; in getRegLanes()
342 unsigned RegUnit = Pair.RegUnit; in addRegLanes() local
345 [RegUnit](const RegisterMaskPair Other) { in addRegLanes()
346 return Other.RegUnit == RegUnit; in addRegLanes()
356 unsigned RegUnit) { in setRegZero() argument
358 [RegUnit](const RegisterMaskPair Other) { in setRegZero()
359 return Other.RegUnit == RegUnit; in setRegZero()
362 RegUnits.push_back(RegisterMaskPair(RegUnit, 0)); in setRegZero()
370 unsigned RegUnit = Pair.RegUnit; in removeRegLanes() local
373 [RegUnit](const RegisterMaskPair Other) { in removeRegLanes()
374 return Other.RegUnit == RegUnit; in removeRegLanes()
384 const MachineRegisterInfo &MRI, bool TrackLaneMasks, unsigned RegUnit, in getLanesWithProperty() argument
387 if (TargetRegisterInfo::isVirtualRegister(RegUnit)) { in getLanesWithProperty()
388 const LiveInterval &LI = LIS.getInterval(RegUnit); in getLanesWithProperty()
396 Result = TrackLaneMasks ? MRI.getMaxLaneMaskForVReg(RegUnit) : ~0u; in getLanesWithProperty()
401 const LiveRange *LR = LIS.getCachedRegUnit(RegUnit); in getLanesWithProperty()
412 bool TrackLaneMasks, unsigned RegUnit, in getLiveLanesAt() argument
414 return getLanesWithProperty(LIS, MRI, TrackLaneMasks, RegUnit, Pos, ~0u, in getLiveLanesAt()
543 unsigned Reg = RI->RegUnit; in detectDeadDefs()
564 LaneBitmask LiveAfter = getLiveLanesAt(LIS, MRI, true, I->RegUnit, in adjustLaneLiveness()
568 unsigned RegUnit = I->RegUnit; in adjustLaneLiveness() local
569 if (TargetRegisterInfo::isVirtualRegister(RegUnit) && in adjustLaneLiveness()
571 AddFlagsMI->setRegisterDefReadUndef(RegUnit); in adjustLaneLiveness()
582 LaneBitmask LiveBefore = getLiveLanesAt(LIS, MRI, true, I->RegUnit, in adjustLaneLiveness()
594 unsigned RegUnit = P.RegUnit; in adjustLaneLiveness() local
595 if (!TargetRegisterInfo::isVirtualRegister(RegUnit)) in adjustLaneLiveness()
597 LaneBitmask LiveAfter = getLiveLanesAt(LIS, MRI, true, RegUnit, in adjustLaneLiveness()
600 AddFlagsMI->setRegisterDefReadUndef(RegUnit); in adjustLaneLiveness()
623 PDiff.addPressureChange(P.RegUnit, true, &MRI); in addInstruction()
626 PDiff.addPressureChange(P.RegUnit, false, &MRI); in addInstruction()
630 void PressureDiff::addPressureChange(unsigned RegUnit, bool IsDec, in addPressureChange() argument
632 PSetIterator PSetI = MRI->getPressureSets(RegUnit); in addPressureChange()
670 increaseRegPressure(P.RegUnit, PrevMask, NewMask); in addLiveRegs()
678 unsigned RegUnit = Pair.RegUnit; in discoverLiveInOrOut() local
680 [RegUnit](const RegisterMaskPair &Other) { in discoverLiveInOrOut()
681 return Other.RegUnit == RegUnit; in discoverLiveInOrOut()
694 increaseSetPressure(P.MaxSetPressure, *MRI, RegUnit, PrevMask, NewMask); in discoverLiveInOrOut()
707 unsigned Reg = P.RegUnit; in bumpDeadDefs()
713 unsigned Reg = P.RegUnit; in bumpDeadDefs()
735 unsigned Reg = Def.RegUnit; in recede()
764 unsigned Reg = Use.RegUnit; in recede()
779 return Other.RegUnit == Reg; in recede()
804 unsigned RegUnit = Def.RegUnit; in recede() local
805 if (TargetRegisterInfo::isVirtualRegister(RegUnit) && in recede()
806 (LiveRegs.contains(RegUnit) & Def.LaneMask) == 0) in recede()
807 UntiedDefs.insert(RegUnit); in recede()
871 unsigned Reg = Use.RegUnit; in advance()
893 increaseRegPressure(Def.RegUnit, PreviousMask, NewMask); in advance()
1022 unsigned Reg = P.RegUnit; in bumpUpwardPressure()
1031 unsigned Reg = P.RegUnit; in bumpUpwardPressure()
1202 LaneBitmask RegPressureTracker::getLiveLanesAt(unsigned RegUnit, in getLiveLanesAt() argument
1205 return getLanesWithProperty(*LIS, *MRI, TrackLaneMasks, RegUnit, Pos, ~0u, in getLiveLanesAt()
1211 LaneBitmask RegPressureTracker::getLastUsedLanes(unsigned RegUnit, in getLastUsedLanes() argument
1214 return getLanesWithProperty(*LIS, *MRI, TrackLaneMasks, RegUnit, in getLastUsedLanes()
1222 LaneBitmask RegPressureTracker::getLiveThroughAt(unsigned RegUnit, in getLiveThroughAt() argument
1225 return getLanesWithProperty(*LIS, *MRI, TrackLaneMasks, RegUnit, Pos, 0u, in getLiveThroughAt()
1254 unsigned Reg = Use.RegUnit; in bumpDownwardPressure()
1277 unsigned Reg = Def.RegUnit; in bumpDownwardPressure()