Lines Matching refs:Idx
134 void insertDebugValue(MachineBasicBlock *MBB, SlotIndex Idx, unsigned LocNo,
213 void addDef(SlotIndex Idx, const MachineOperand &LocMO) { in addDef() argument
215 LocMap::iterator I = locInts.find(Idx); in addDef()
216 if (!I.valid() || I.start() != Idx) in addDef()
217 I.insert(Idx, Idx.getNextSlot(), getLocationNo(LocMO)); in addDef()
234 void extendDef(SlotIndex Idx, unsigned LocNo,
316 bool handleDebugValue(MachineInstr *MI, SlotIndex Idx);
490 bool LDVImpl::handleDebugValue(MachineInstr *MI, SlotIndex Idx) { in handleDebugValue() argument
507 UV->addDef(Idx, MI->getOperand(0)); in handleDebugValue()
523 SlotIndex Idx = MBBI == MBB->begin() ? in collectDebugValues() local
528 if (handleDebugValue(MBBI, Idx)) { in collectDebugValues()
539 void UserValue::extendDef(SlotIndex Idx, unsigned LocNo, in extendDef() argument
545 Todo.push_back(Idx); in extendDef()
629 SlotIndex Idx = LIS.getInstructionIndex(MI); in addDefsFromCopies() local
630 LocMap::iterator I = locInts.find(Idx.getRegSlot(true)); in addDefsFromCopies()
637 const VNInfo *DstVNI = DstLI->getVNInfoAt(Idx.getRegSlot()); in addDefsFromCopies()
638 assert(DstVNI && DstVNI->def == Idx.getRegSlot() && "Bad copy value"); in addDefsFromCopies()
649 SlotIndex Idx = Kills[i]; in addDefsFromCopies() local
653 if (DstLI->getVNInfoAt(Idx) != DstVNI) in addDefsFromCopies()
656 LocMap::iterator I = locInts.find(Idx); in addDefsFromCopies()
657 if (I.valid() && I.start() <= Idx) in addDefsFromCopies()
659 DEBUG(dbgs() << "Kill at " << Idx << " covered by valno #" in addDefsFromCopies()
664 I.insert(Idx, Idx.getNextSlot(), LocNo); in addDefsFromCopies()
665 NewDefs.push_back(std::make_pair(Idx, LocNo)); in addDefsFromCopies()
686 SlotIndex Idx = Defs[i].first; in computeIntervals() local
691 extendDef(Idx, LocNo, nullptr, nullptr, nullptr, LIS, MDT, UVS); in computeIntervals()
701 VNI = LI->getVNInfoAt(Idx); in computeIntervals()
704 extendDef(Idx, LocNo, LI, VNI, &Kills, LIS, MDT, UVS); in computeIntervals()
713 const VNInfo *VNI = LR->getVNInfoAt(Idx); in computeIntervals()
715 extendDef(Idx, LocNo, LR, VNI, nullptr, LIS, MDT, UVS); in computeIntervals()
955 findInsertLocation(MachineBasicBlock *MBB, SlotIndex Idx, in findInsertLocation() argument
958 Idx = Idx.getBaseIndex(); in findInsertLocation()
962 while (!(MI = LIS.getInstructionFromIndex(Idx))) { in findInsertLocation()
964 if (Idx == Start) { in findInsertLocation()
968 Idx = Idx.getPrevIndex(); in findInsertLocation()
976 void UserValue::insertDebugValue(MachineBasicBlock *MBB, SlotIndex Idx, in insertDebugValue() argument
980 MachineBasicBlock::iterator I = findInsertLocation(MBB, Idx, LIS); in insertDebugValue()