• Home
  • Raw
  • Download

Lines Matching refs:LR

67   LiveRange *LR;  member in __anona5179b400111::CalcLiveRangeUtilBase
70 CalcLiveRangeUtilBase(LiveRange *LR) : LR(LR) {} in CalcLiveRangeUtilBase() argument
94 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef()
115 VNInfo *VNI = ForVNI ? ForVNI : LR->getNextValue(Def, *VNInfoAllocator); in createDeadDef()
142 return std::make_pair(nullptr, LR->isUndefIn(Undefs, StartIdx, BeforeUse)); in extendInBlock()
145 return std::make_pair(nullptr, LR->isUndefIn(Undefs, StartIdx, BeforeUse)); in extendInBlock()
147 if (LR->isUndefIn(Undefs, I->end, BeforeUse)) in extendInBlock()
288 CalcLiveRangeUtilVector(LiveRange *LR) : CalcLiveRangeUtilVectorBase(LR) {} in CalcLiveRangeUtilVector() argument
293 LiveRange::Segments &segmentsColl() { return LR->segments; } in segmentsColl()
295 void insertAtEnd(const Segment &S) { LR->segments.push_back(S); } in insertAtEnd()
297 iterator find(SlotIndex Pos) { return LR->find(Pos); } in find()
299 iterator findInsertPos(Segment S) { return llvm::upper_bound(*LR, S.start); } in findInsertPos()
314 CalcLiveRangeUtilSet(LiveRange *LR) : CalcLiveRangeUtilSetBase(LR) {} in CalcLiveRangeUtilSet() argument
319 LiveRange::SegmentSet &segmentsColl() { return *LR->segmentSet; } in segmentsColl()
322 LR->segmentSet->insert(LR->segmentSet->end(), S); in insertAtEnd()
327 LR->segmentSet->upper_bound(Segment(Pos, Pos.getNextSlot(), nullptr)); in find()
328 if (I == LR->segmentSet->begin()) in find()
337 iterator I = LR->segmentSet->upper_bound(S); in findInsertPos()
338 if (I != LR->segmentSet->end() && !(S.start < *I)) in findInsertPos()
1141 if (LR) in print()
1142 OS << "Clean updater: " << *LR << '\n'; in print()
1147 assert(LR && "Can't have null LR in dirty updater."); in print()
1151 for (const auto &S : make_range(LR->begin(), WriteI)) in print()
1157 for (const auto &S : make_range(ReadI, LR->end())) in print()
1180 assert(LR && "Cannot add to a null destination"); in add()
1184 if (LR->segmentSet != nullptr) { in add()
1185 LR->addSegmentToSet(Seg); in add()
1195 WriteI = ReadI = LR->begin(); in add()
1202 LiveRange::iterator E = LR->end(); in add()
1209 ReadI = WriteI = LR->find(Seg.start); in add()
1242 if (WriteI != LR->begin() && coalescable(WriteI[-1], Seg)) { in add()
1255 LR->segments.push_back(Seg); in add()
1256 WriteI = ReadI = LR->end(); in add()
1270 LiveRange::iterator B = LR->begin(); in mergeSpills()
1292 assert(LR && "Cannot add to a null destination"); in flush()
1296 LR->segments.erase(WriteI, ReadI); in flush()
1297 LR->verify(); in flush()
1305 size_t WritePos = WriteI - LR->begin(); in flush()
1306 LR->segments.insert(ReadI, Spills.size() - GapSize, LiveRange::Segment()); in flush()
1308 WriteI = LR->begin() + WritePos; in flush()
1311 LR->segments.erase(WriteI + Spills.size(), ReadI); in flush()
1315 LR->verify(); in flush()
1318 unsigned ConnectedVNInfoEqClasses::Classify(const LiveRange &LR) { in Classify() argument
1321 EqClass.grow(LR.getNumValNums()); in Classify()
1326 for (const VNInfo *VNI : LR.valnos) { in Classify()
1341 if (const VNInfo *PVNI = LR.getVNInfoBefore(LIS.getMBBEndIdx(*PI))) in Classify()
1348 if (const VNInfo *UVNI = LR.getVNInfoBefore(VNI->def)) in Classify()