Lines Matching refs:LocIndex

222 struct LocIndex {  struct
251 LocIndex(u32_location_t Location, u32_index_t Index) in LocIndex() argument
258 template<typename IntT> static LocIndex fromRawInteger(IntT ID) { in fromRawInteger() argument
269 return LocIndex(Reg, 0).getAsRawInteger(); in rawIndexForReg()
276 uint64_t Start = LocIndex(Location, 0).getAsRawInteger(); in indexRangeForLocation()
277 uint64_t End = LocIndex(Location + 1, 0).getAsRawInteger(); in indexRangeForLocation()
283 using VarLocsInRange = SmallSet<LocIndex::u32_index_t, 32>;
287 using LocIndices = SmallVector<LocIndex, 2>;
743 SmallDenseMap<LocIndex::u32_location_t, std::vector<VarLoc>> Loc2Vars;
752 SmallVector<LocIndex::u32_location_t, 4> Locations; in insert()
762 return RegNo < LocIndex::kFirstInvalidRegLocation; in insert()
766 LocIndex::u32_location_t Loc = LocIndex::kSpillLocation; in insert()
770 LocIndex::u32_location_t Loc = LocIndex::kEntryValueBackupLocation; in insert()
773 Locations.push_back(LocIndex::kUniversalLocation); in insert()
774 for (LocIndex::u32_location_t Location : Locations) { in insert()
777 {Location, static_cast<LocIndex::u32_index_t>(Vars.size())}); in insert()
790 const VarLoc &operator[](LocIndex ID) const { in operator []()
801 LocIndex LocationID; ///< Location number for the transfer dest.
869 LocIndex::u32_location_t Location);
902 return LocIndex::indexRangeForLocation(getVarLocs(), Reg); in getRegisterVarLocs()
907 return LocIndex::indexRangeForLocation(getVarLocs(), in getSpillVarLocs()
908 LocIndex::kSpillLocation); in getSpillVarLocs()
914 return LocIndex::indexRangeForLocation( in getEntryValueBackupVarLocs()
915 getVarLocs(), LocIndex::kEntryValueBackupLocation); in getEntryValueBackupVarLocs()
972 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()
1268 const VarLoc &VL = VarLocIDs[LocIndex::fromRawInteger(ID)]; in removeEntryValue()
1339 uint64_t FirstIndex = LocIndex::rawIndexForReg(LocIndex::kUniversalLocation); in collectAllVarLocs()
1341 LocIndex::rawIndexForReg(LocIndex::kUniversalLocation + 1); in collectAllVarLocs()
1345 LocIndex RegIdx = LocIndex::fromRawInteger(*It); in collectAllVarLocs()
1362 LocIndex Idx = LocIndex(LocIndex::kUniversalLocation, ID); in emitEntryValues()
1392 VarLocMap &VarLocIDs, LocIndex OldVarID, TransferKind Kind, in insertTransferDebugPair()
1516 OpenRanges.erase(KillSet, VarLocIDs, LocIndex::kUniversalLocation); in transferRegisterDef()
1618 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferSpillOrRestoreInst()
1640 OpenRanges.erase(KillSet, VarLocIDs, LocIndex::kSpillLocation); in transferSpillOrRestoreInst()
1665 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferSpillOrRestoreInst()
1732 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferRegisterCopy()
1753 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferRegisterCopy()
1918 LocIndex Idx = LocIndex::fromRawInteger(ID); in join()