Lines Matching refs:LR
68 LiveRange *LR; member in __anon212ad7ee0111::CalcLiveRangeUtilBase
71 CalcLiveRangeUtilBase(LiveRange *LR) : LR(LR) {} in CalcLiveRangeUtilBase() argument
95 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef()
116 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef()
143 return std::make_pair(nullptr, LR->isUndefIn(Undefs, StartIdx, BeforeUse)); in extendInBlock()
146 return std::make_pair(nullptr, LR->isUndefIn(Undefs, StartIdx, BeforeUse)); in extendInBlock()
148 if (LR->isUndefIn(Undefs, I->end, BeforeUse)) in extendInBlock()
289 CalcLiveRangeUtilVector(LiveRange *LR) : CalcLiveRangeUtilVectorBase(LR) {} in CalcLiveRangeUtilVector() argument
294 LiveRange::Segments &segmentsColl() { return LR->segments; } in segmentsColl()
296 void insertAtEnd(const Segment &S) { LR->segments.push_back(S); } in insertAtEnd()
298 iterator find(SlotIndex Pos) { return LR->find(Pos); } in find()
301 return std::upper_bound(LR->begin(), LR->end(), S.start); in findInsertPos()
317 CalcLiveRangeUtilSet(LiveRange *LR) : CalcLiveRangeUtilSetBase(LR) {} in CalcLiveRangeUtilSet() argument
322 LiveRange::SegmentSet &segmentsColl() { return *LR->segmentSet; } in segmentsColl()
325 LR->segmentSet->insert(LR->segmentSet->end(), S); in insertAtEnd()
330 LR->segmentSet->upper_bound(Segment(Pos, Pos.getNextSlot(), nullptr)); in find()
331 if (I == LR->segmentSet->begin()) in find()
340 iterator I = LR->segmentSet->upper_bound(S); in findInsertPos()
341 if (I != LR->segmentSet->end() && !(S.start < *I)) in findInsertPos()
1085 if (LR) in print()
1086 OS << "Clean updater: " << *LR << '\n'; in print()
1091 assert(LR && "Can't have null LR in dirty updater."); in print()
1095 for (const auto &S : make_range(LR->begin(), WriteI)) in print()
1101 for (const auto &S : make_range(ReadI, LR->end())) in print()
1124 assert(LR && "Cannot add to a null destination"); in add()
1128 if (LR->segmentSet != nullptr) { in add()
1129 LR->addSegmentToSet(Seg); in add()
1139 WriteI = ReadI = LR->begin(); in add()
1146 LiveRange::iterator E = LR->end(); in add()
1153 ReadI = WriteI = LR->find(Seg.start); in add()
1186 if (WriteI != LR->begin() && coalescable(WriteI[-1], Seg)) { in add()
1199 LR->segments.push_back(Seg); in add()
1200 WriteI = ReadI = LR->end(); in add()
1214 LiveRange::iterator B = LR->begin(); in mergeSpills()
1236 assert(LR && "Cannot add to a null destination"); in flush()
1240 LR->segments.erase(WriteI, ReadI); in flush()
1241 LR->verify(); in flush()
1249 size_t WritePos = WriteI - LR->begin(); in flush()
1250 LR->segments.insert(ReadI, Spills.size() - GapSize, LiveRange::Segment()); in flush()
1252 WriteI = LR->begin() + WritePos; in flush()
1255 LR->segments.erase(WriteI + Spills.size(), ReadI); in flush()
1259 LR->verify(); in flush()
1262 unsigned ConnectedVNInfoEqClasses::Classify(const LiveRange &LR) { in Classify() argument
1265 EqClass.grow(LR.getNumValNums()); in Classify()
1270 for (const VNInfo *VNI : LR.valnos) { in Classify()
1285 if (const VNInfo *PVNI = LR.getVNInfoBefore(LIS.getMBBEndIdx(*PI))) in Classify()
1292 if (const VNInfo *UVNI = LR.getVNInfoBefore(VNI->def)) in Classify()