Lines Matching refs:Locs
415 SmallVector<MachineLoc, 8> Locs; member
431 auto It = find(Locs, ML); in VarLoc()
432 if (It == Locs.end()) { in VarLoc()
433 Locs.push_back(ML); in VarLoc()
438 unsigned OpIdx = Locs.size(); in VarLoc()
439 unsigned DuplicatingIdx = std::distance(Locs.begin(), It); in VarLoc()
478 assert(VL.Locs.size() == 1 && in CreateEntryLoc()
479 VL.Locs[0].Kind == MachineLocKind::RegisterKind); in CreateEntryLoc()
482 VL.Locs[0].Value.RegNo = Reg; in CreateEntryLoc()
493 assert(VL.Locs.size() == 1 && in CreateEntryBackupLoc()
494 VL.Locs[0].Kind == MachineLocKind::RegisterKind); in CreateEntryBackupLoc()
507 assert(VL.Locs.size() == 1 && in CreateEntryCopyBackupLoc()
508 VL.Locs[0].Kind == MachineLocKind::RegisterKind); in CreateEntryCopyBackupLoc()
511 VL.Locs[0].Value.RegNo = NewReg; in CreateEntryCopyBackupLoc()
520 for (MachineLoc &ML : VL.Locs) in CreateCopyLoc()
534 for (MachineLoc &ML : VL.Locs) in CreateSpillLoc()
558 for (unsigned I = 0, E = Locs.size(); I < E; ++I) { in BuildDbgValue()
559 MachineLocKind LocKind = Locs[I].Kind; in BuildDbgValue()
560 MachineLocValue Loc = Locs[I].Value; in BuildDbgValue()
641 return is_contained(Locs, RegML); in usesReg()
646 for (unsigned Idx = 0; Idx < Locs.size(); ++Idx) in getRegIdx()
647 if (Locs[Idx].Kind == MachineLocKind::RegisterKind && in getRegIdx()
648 Register{static_cast<unsigned>(Locs[Idx].Value.RegNo)} == Reg) in getRegIdx()
657 for (const auto &Loc : Locs) in getDescribingRegs()
666 return any_of(Locs, [](VarLoc::MachineLoc ML) { in containsSpillLocs()
677 return is_contained(Locs, SpillML); in usesSpillLoc()
683 for (unsigned Idx = 0; Idx < Locs.size(); ++Idx) in getSpillLocIdx()
684 if (Locs[Idx].Kind == MachineLocKind::SpillLocKind && in getSpillLocIdx()
685 Locs[Idx].Value.SpillLocation == SpillLocation) in getSpillLocIdx()
691 return any_of(Locs, [](VarLoc::MachineLoc ML) { in containsWasmLocs()
702 return is_contained(Locs, WasmML); in usesWasmLoc()
716 for (const MachineLoc &MLoc : Locs) { in dump()
717 if (Locs.begin() != &MLoc) in dump()
768 return std::tie(EVKind, Var, Expr, Locs) == in operator ==()
769 std::tie(Other.EVKind, Other.Var, Other.Expr, Other.Locs); in operator ==()
774 return std::tie(Var, EVKind, Locs, Expr) < in operator <()
775 std::tie(Other.Var, Other.EVKind, Other.Locs, Other.Expr); in operator <()
989 VarLocSet &getVarLocsInMBB(const MachineBasicBlock *MBB, VarLocInMBB &Locs) { in getVarLocsInMBB() argument
990 std::unique_ptr<VarLocSet> &VLS = Locs[MBB]; in getVarLocsInMBB()
997 const VarLocInMBB &Locs) const { in getVarLocsInMBB()
998 auto It = Locs.find(MBB); in getVarLocsInMBB()
999 assert(It != Locs.end() && "MBB not in map"); in getVarLocsInMBB()
1317 if (std::tie(EntryVL.Var, EntryVL.Locs[0].Value.RegNo, EntryVL.Expr) == in cleanupEntryValueTransfers()
1318 std::tie(EmittedEV.Var, EmittedEV.Locs[0].Value.RegNo, in cleanupEntryValueTransfers()
1489 EntryVL.Locs[0].Value.RegNo); in emitEntryValues()
1778 VarLoc::MachineLoc OldLoc = VL.Locs[SpillLocIdx]; in transferSpillOrRestoreInst()
1827 VarLoc::MachineLoc MLoc = VL.Locs[LocIdx]; in transferSpillOrRestoreInst()