• Home
  • Raw
  • Download

Lines Matching refs:LR

53   LiveRange *LR;  member in __anond39950d20111::CalcLiveRangeUtilBase
56 CalcLiveRangeUtilBase(LiveRange *LR) : LR(LR) {} in CalcLiveRangeUtilBase() argument
67 VNInfo *VNI = LR->getNextValue(Def, VNInfoAllocator); in createDeadDef()
87 VNInfo *VNI = LR->getNextValue(Def, VNInfoAllocator); in createDeadDef()
240 CalcLiveRangeUtilVector(LiveRange *LR) : CalcLiveRangeUtilVectorBase(LR) {} in CalcLiveRangeUtilVector() argument
245 LiveRange::Segments &segmentsColl() { return LR->segments; } in segmentsColl()
247 void insertAtEnd(const Segment &S) { LR->segments.push_back(S); } in insertAtEnd()
249 iterator find(SlotIndex Pos) { return LR->find(Pos); } in find()
252 return std::upper_bound(LR->begin(), LR->end(), S.start); in findInsertPos()
268 CalcLiveRangeUtilSet(LiveRange *LR) : CalcLiveRangeUtilSetBase(LR) {} in CalcLiveRangeUtilSet() argument
273 LiveRange::SegmentSet &segmentsColl() { return *LR->segmentSet; } in segmentsColl()
276 LR->segmentSet->insert(LR->segmentSet->end(), S); in insertAtEnd()
281 LR->segmentSet->upper_bound(Segment(Pos, Pos.getNextSlot(), nullptr)); in find()
282 if (I == LR->segmentSet->begin()) in find()
291 iterator I = LR->segmentSet->upper_bound(S); in findInsertPos()
292 if (I != LR->segmentSet->end() && !(S.start < *I)) in findInsertPos()
966 if (LR) in print()
967 OS << "Clean updater: " << *LR << '\n'; in print()
972 assert(LR && "Can't have null LR in dirty updater."); in print()
976 for (const auto &S : make_range(LR->begin(), WriteI)) in print()
982 for (const auto &S : make_range(ReadI, LR->end())) in print()
1004 assert(LR && "Cannot add to a null destination"); in add()
1008 if (LR->segmentSet != nullptr) { in add()
1009 LR->addSegmentToSet(Seg); in add()
1019 WriteI = ReadI = LR->begin(); in add()
1026 LiveRange::iterator E = LR->end(); in add()
1033 ReadI = WriteI = LR->find(Seg.start); in add()
1066 if (WriteI != LR->begin() && coalescable(WriteI[-1], Seg)) { in add()
1079 LR->segments.push_back(Seg); in add()
1080 WriteI = ReadI = LR->end(); in add()
1094 LiveRange::iterator B = LR->begin(); in mergeSpills()
1116 assert(LR && "Cannot add to a null destination"); in flush()
1120 LR->segments.erase(WriteI, ReadI); in flush()
1121 LR->verify(); in flush()
1129 size_t WritePos = WriteI - LR->begin(); in flush()
1130 LR->segments.insert(ReadI, Spills.size() - GapSize, LiveRange::Segment()); in flush()
1132 WriteI = LR->begin() + WritePos; in flush()
1135 LR->segments.erase(WriteI + Spills.size(), ReadI); in flush()
1139 LR->verify(); in flush()
1142 unsigned ConnectedVNInfoEqClasses::Classify(const LiveRange &LR) { in Classify() argument
1145 EqClass.grow(LR.getNumValNums()); in Classify()
1150 for (const VNInfo *VNI : LR.valnos) { in Classify()
1165 if (const VNInfo *PVNI = LR.getVNInfoBefore(LIS.getMBBEndIdx(*PI))) in Classify()
1172 if (const VNInfo *UVNI = LR.getVNInfoBefore(VNI->def)) in Classify()