Lines Matching refs:LocIndex
203 struct LocIndex { struct
232 LocIndex(u32_location_t Location, u32_index_t Index) in LocIndex() function
239 template<typename IntT> static LocIndex fromRawInteger(IntT ID) { in fromRawInteger() argument
250 return LocIndex(Reg, 0).getAsRawInteger(); in rawIndexForReg()
257 uint64_t Start = LocIndex(Location, 0).getAsRawInteger(); in indexRangeForLocation()
258 uint64_t End = LocIndex(Location + 1, 0).getAsRawInteger(); in indexRangeForLocation()
264 using VarLocsInRange = SmallSet<LocIndex::u32_index_t, 32>;
268 using LocIndices = SmallVector<LocIndex, 2>;
724 SmallDenseMap<LocIndex::u32_location_t, std::vector<VarLoc>> Loc2Vars;
733 SmallVector<LocIndex::u32_location_t, 4> Locations; in insert()
743 return RegNo < LocIndex::kFirstInvalidRegLocation; in insert()
747 LocIndex::u32_location_t Loc = LocIndex::kSpillLocation; in insert()
751 LocIndex::u32_location_t Loc = LocIndex::kEntryValueBackupLocation; in insert()
754 Locations.push_back(LocIndex::kUniversalLocation); in insert()
755 for (LocIndex::u32_location_t Location : Locations) { in insert()
758 {Location, static_cast<LocIndex::u32_index_t>(Vars.size())}); in insert()
771 const VarLoc &operator[](LocIndex ID) const { in operator []()
782 LocIndex LocationID; ///< Location number for the transfer dest.
787 using InstToEntryLocMap = std::multimap<const MachineInstr *, LocIndex>;
854 LocIndex::u32_location_t Location);
887 return LocIndex::indexRangeForLocation(getVarLocs(), Reg); in getRegisterVarLocs()
892 return LocIndex::indexRangeForLocation(getVarLocs(), in getSpillVarLocs()
893 LocIndex::kSpillLocation); in getSpillVarLocs()
899 return LocIndex::indexRangeForLocation( in getEntryValueBackupVarLocs()
900 getVarLocs(), LocIndex::kEntryValueBackupLocation); in getEntryValueBackupVarLocs()
957 LocIndex OldVarID, TransferKind Kind,
1046 for (LocIndex ID : IDs) in erase()
1076 LocIndex::u32_location_t Location) { in erase()
1078 for (LocIndex::u32_index_t ID : KillSet) { in erase()
1079 const VarLoc &VL = VarLocIDs[LocIndex(Location, ID)]; in erase()
1083 for (LocIndex ID : VLI) in erase()
1093 Regs.insert(LocIndex::kUniversalLocation); in insertFromLocSet()
1096 LocIndex Idx = LocIndex::fromRawInteger(ID); in insertFromLocSet()
1106 for (LocIndex ID : VarLocIDs) in insert()
1130 auto It = CollectFrom.find(LocIndex::rawIndexForReg(SortedRegs.front())); in collectIDsForRegs()
1136 uint64_t FirstIndexForReg = LocIndex::rawIndexForReg(Reg); in collectIDsForRegs()
1137 uint64_t FirstInvalidIndex = LocIndex::rawIndexForReg(Reg + 1); in collectIDsForRegs()
1142 LocIndex ItIdx = LocIndex::fromRawInteger(*It); in collectIDsForRegs()
1146 assert(LI.back().Location == LocIndex::kUniversalLocation && in collectIDsForRegs()
1162 LocIndex::rawIndexForReg(LocIndex::kFirstRegLocation); in getUsedRegs()
1164 LocIndex::rawIndexForReg(LocIndex::kFirstInvalidRegLocation); in getUsedRegs()
1170 uint32_t FoundReg = LocIndex::fromRawInteger(*It).Location; in getUsedRegs()
1178 uint64_t NextRegIndex = LocIndex::rawIndexForReg(FoundReg + 1); in getUsedRegs()
1296 const VarLoc &VL = VarLocIDs[LocIndex::fromRawInteger(ID)]; in removeEntryValue()
1372 uint64_t FirstIndex = LocIndex::rawIndexForReg(LocIndex::kUniversalLocation); in collectAllVarLocs()
1374 LocIndex::rawIndexForReg(LocIndex::kUniversalLocation + 1); in collectAllVarLocs()
1378 LocIndex RegIdx = LocIndex::fromRawInteger(*It); in collectAllVarLocs()
1395 LocIndex Idx = LocIndex(LocIndex::kUniversalLocation, ID); in emitEntryValues()
1427 VarLocMap &VarLocIDs, LocIndex OldVarID, TransferKind Kind, in insertTransferDebugPair()
1559 OpenRanges.erase(KillSet, VarLocIDs, LocIndex::kUniversalLocation); in transferRegisterDef()
1661 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferSpillOrRestoreInst()
1683 OpenRanges.erase(KillSet, VarLocIDs, LocIndex::kSpillLocation); in transferSpillOrRestoreInst()
1708 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferSpillOrRestoreInst()
1775 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferRegisterCopy()
1796 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferRegisterCopy()
1967 LocIndex Idx = LocIndex::fromRawInteger(ID); in join()