Lines Matching refs:LocIndex
205 struct LocIndex { struct
242 LocIndex(u32_location_t Location, u32_index_t Index) in LocIndex() function
249 template<typename IntT> static LocIndex fromRawInteger(IntT ID) { in fromRawInteger() argument
259 return LocIndex(Reg, 0).getAsRawInteger(); in rawIndexForReg()
266 uint64_t Start = LocIndex(Location, 0).getAsRawInteger(); in indexRangeForLocation()
267 uint64_t End = LocIndex(Location + 1, 0).getAsRawInteger(); in indexRangeForLocation()
273 using VarLocsInRange = SmallSet<LocIndex::u32_index_t, 32>;
277 using LocIndices = SmallVector<LocIndex, 2>;
794 SmallDenseMap<LocIndex::u32_location_t, std::vector<VarLoc>> Loc2Vars;
803 SmallVector<LocIndex::u32_location_t, 4> Locations; in insert()
813 return RegNo < LocIndex::kFirstInvalidRegLocation; in insert()
817 Locations.push_back(LocIndex::kSpillLocation); in insert()
819 Locations.push_back(LocIndex::kWasmLocation); in insert()
821 LocIndex::u32_location_t Loc = LocIndex::kEntryValueBackupLocation; in insert()
824 Locations.push_back(LocIndex::kUniversalLocation); in insert()
825 for (LocIndex::u32_location_t Location : Locations) { in insert()
828 {Location, static_cast<LocIndex::u32_index_t>(Vars.size())}); in insert()
841 const VarLoc &operator[](LocIndex ID) const { in operator []()
852 LocIndex LocationID; ///< Location number for the transfer dest.
857 using InstToEntryLocMap = std::multimap<const MachineInstr *, LocIndex>;
924 LocIndex::u32_location_t Location);
957 return LocIndex::indexRangeForLocation(getVarLocs(), Reg); in getRegisterVarLocs()
962 return LocIndex::indexRangeForLocation(getVarLocs(), in getSpillVarLocs()
963 LocIndex::kSpillLocation); in getSpillVarLocs()
969 return LocIndex::indexRangeForLocation( in getEntryValueBackupVarLocs()
970 getVarLocs(), LocIndex::kEntryValueBackupLocation); in getEntryValueBackupVarLocs()
975 return LocIndex::indexRangeForLocation(getVarLocs(), in getWasmVarLocs()
976 LocIndex::kWasmLocation); in getWasmVarLocs()
1033 LocIndex OldVarID, TransferKind Kind,
1124 for (LocIndex ID : IDs) in erase()
1154 LocIndex::u32_location_t Location) { in erase()
1156 for (LocIndex::u32_index_t ID : KillSet) { in erase()
1157 const VarLoc &VL = VarLocIDs[LocIndex(Location, ID)]; in erase()
1161 for (LocIndex ID : VLI) in erase()
1171 Regs.insert(LocIndex::kUniversalLocation); in insertFromLocSet()
1174 LocIndex Idx = LocIndex::fromRawInteger(ID); in insertFromLocSet()
1184 for (LocIndex ID : VarLocIDs) in insert()
1208 auto It = CollectFrom.find(LocIndex::rawIndexForReg(SortedRegs.front())); in collectIDsForRegs()
1214 uint64_t FirstIndexForReg = LocIndex::rawIndexForReg(Reg); in collectIDsForRegs()
1215 uint64_t FirstInvalidIndex = LocIndex::rawIndexForReg(Reg + 1); in collectIDsForRegs()
1220 LocIndex ItIdx = LocIndex::fromRawInteger(*It); in collectIDsForRegs()
1224 assert(LI.back().Location == LocIndex::kUniversalLocation && in collectIDsForRegs()
1240 LocIndex::rawIndexForReg(LocIndex::kFirstRegLocation); in getUsedRegs()
1242 LocIndex::rawIndexForReg(LocIndex::kFirstInvalidRegLocation); in getUsedRegs()
1248 uint32_t FoundReg = LocIndex::fromRawInteger(*It).Location; in getUsedRegs()
1256 uint64_t NextRegIndex = LocIndex::rawIndexForReg(FoundReg + 1); in getUsedRegs()
1374 const VarLoc &VL = VarLocIDs[LocIndex::fromRawInteger(ID)]; in removeEntryValue()
1450 uint64_t FirstIndex = LocIndex::rawIndexForReg(LocIndex::kUniversalLocation); in collectAllVarLocs()
1452 LocIndex::rawIndexForReg(LocIndex::kUniversalLocation + 1); in collectAllVarLocs()
1456 LocIndex RegIdx = LocIndex::fromRawInteger(*It); in collectAllVarLocs()
1473 LocIndex Idx = LocIndex(LocIndex::kUniversalLocation, ID); in emitEntryValues()
1505 VarLocMap &VarLocIDs, LocIndex OldVarID, TransferKind Kind, in insertTransferDebugPair()
1636 OpenRanges.erase(KillSet, VarLocIDs, LocIndex::kUniversalLocation); in transferRegisterDef()
1660 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferWasmDef()
1666 OpenRanges.erase(KillSet, VarLocIDs, LocIndex::kWasmLocation); in transferWasmDef()
1762 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferSpillOrRestoreInst()
1784 OpenRanges.erase(KillSet, VarLocIDs, LocIndex::kSpillLocation); in transferSpillOrRestoreInst()
1809 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferSpillOrRestoreInst()
1876 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferRegisterCopy()
1897 LocIndex Idx = LocIndex::fromRawInteger(ID); in transferRegisterCopy()
2069 LocIndex Idx = LocIndex::fromRawInteger(ID); in join()