Lines Matching refs:VL
366 VarLoc VL(MI, LS); in CreateEntryLoc() local
367 assert(VL.Kind == RegisterKind); in CreateEntryLoc()
368 VL.Kind = EntryValueKind; in CreateEntryLoc()
369 VL.Expr = EntryExpr; in CreateEntryLoc()
370 VL.Loc.RegNo = Reg; in CreateEntryLoc()
371 return VL; in CreateEntryLoc()
381 VarLoc VL(MI, LS); in CreateEntryBackupLoc() local
382 assert(VL.Kind == RegisterKind); in CreateEntryBackupLoc()
383 VL.Kind = EntryValueBackupKind; in CreateEntryBackupLoc()
384 VL.Expr = EntryExpr; in CreateEntryBackupLoc()
385 return VL; in CreateEntryBackupLoc()
395 VarLoc VL(MI, LS); in CreateEntryCopyBackupLoc() local
396 assert(VL.Kind == RegisterKind); in CreateEntryCopyBackupLoc()
397 VL.Kind = EntryValueCopyBackupKind; in CreateEntryCopyBackupLoc()
398 VL.Expr = EntryExpr; in CreateEntryCopyBackupLoc()
399 VL.Loc.RegNo = NewReg; in CreateEntryCopyBackupLoc()
400 return VL; in CreateEntryCopyBackupLoc()
407 VarLoc VL(MI, LS); in CreateCopyLoc() local
408 assert(VL.Kind == RegisterKind); in CreateCopyLoc()
409 VL.Loc.RegNo = NewReg; in CreateCopyLoc()
410 return VL; in CreateCopyLoc()
417 VarLoc VL(MI, LS); in CreateSpillLoc() local
418 assert(VL.Kind == RegisterKind); in CreateSpillLoc()
419 VL.Kind = SpillLocKind; in CreateSpillLoc()
420 VL.Loc.SpillLocation = {SpillBase, SpillOffset}; in CreateSpillLoc()
421 return VL; in CreateSpillLoc()
570 static LocIndex::u32_location_t getLocationForVar(const VarLoc &VL) { in getLocationForVar() argument
571 switch (VL.Kind) { in getLocationForVar()
573 assert((VL.Loc.RegNo < LocIndex::kFirstInvalidRegLocation) && in getLocationForVar()
575 return VL.Loc.RegNo; in getLocationForVar()
588 LocIndex insert(const VarLoc &VL) { in insert() argument
589 LocIndex::u32_location_t Location = getLocationForVar(VL); in insert()
590 LocIndex::u32_index_t &Index = Var2Index[VL]; in insert()
593 Vars.push_back(VL); in insert()
652 void erase(const VarLoc &VL);
659 void insert(LocIndex VarLocID, const VarLoc &VL);
833 void VarLocBasedLDV::OpenRangesSet::erase(const VarLoc &VL) { in erase() argument
835 auto DoErase = [VL, this](DebugVariable VarToErase) { in erase()
836 auto *EraseFrom = VL.isEntryBackupLoc() ? &EntryValuesBackupVars : &Vars; in erase()
845 DebugVariable Var = VL.Var; in erase()
871 const VarLoc *VL = &VarLocIDs[LocIndex::fromRawInteger(ID)]; in erase() local
872 auto *EraseFrom = VL->isEntryBackupLoc() ? &EntryValuesBackupVars : &Vars; in erase()
873 EraseFrom->erase(VL->Var); in erase()
878 const VarLoc &VL) { in insert() argument
879 auto *InsertInto = VL.isEntryBackupLoc() ? &EntryValuesBackupVars : &Vars; in insert()
881 InsertInto->insert({VL.Var, VarLocID}); in insert()
965 const VarLoc &VL = VarLocIDs[LocIndex::fromRawInteger(VLL)]; in printVarLocInMBB() local
966 Out << " Var: " << VL.Var.getVariable()->getName(); in printVarLocInMBB()
968 VL.dump(TRI, Out); in printVarLocInMBB()
1035 const VarLoc &VL = VarLocIDs[LocIndex::fromRawInteger(ID)]; in removeEntryValue() local
1036 if (VL.getEntryValueCopyBackupReg() == Reg && in removeEntryValue()
1037 VL.MI.getDebugOperand(0).getReg() == SrcRegOp->getReg()) in removeEntryValue()
1078 VarLoc VL(MI, LS); in transferDebugValue() local
1080 OpenRanges.erase(VL); in transferDebugValue()
1082 LocIndex ID = VarLocIDs.insert(VL); in transferDebugValue()
1084 OpenRanges.insert(ID, VL); in transferDebugValue()
1092 VarLoc VL(MI, LS); in transferDebugValue() local
1093 OpenRanges.erase(VL); in transferDebugValue()
1109 const VarLoc &VL = VarLocIDs[Idx]; in emitEntryValues() local
1110 if (!VL.Var.getVariable()->isParameter()) in emitEntryValues()
1113 auto DebugVar = VL.Var; in emitEntryValues()
1142 auto ProcessVarLoc = [&MI, &OpenRanges, &Transfers, &VarLocIDs](VarLoc &VL) { in insertTransferDebugPair() argument
1143 LocIndex LocId = VarLocIDs.insert(VL); in insertTransferDebugPair()
1146 OpenRanges.erase(VL); in insertTransferDebugPair()
1150 OpenRanges.insert(LocId, VL); in insertTransferDebugPair()
1164 VarLoc VL = VarLoc::CreateCopyLoc(*DebugInstr, LS, NewReg); in insertTransferDebugPair() local
1165 ProcessVarLoc(VL); in insertTransferDebugPair()
1168 VL.dump(TRI); in insertTransferDebugPair()
1176 VarLoc VL = VarLoc::CreateSpillLoc(*DebugInstr, SpillLocation.SpillBase, in insertTransferDebugPair() local
1178 ProcessVarLoc(VL); in insertTransferDebugPair()
1181 VL.dump(TRI); in insertTransferDebugPair()
1190 VarLoc VL = VarLoc::CreateCopyLoc(*DebugInstr, LS, NewReg); in insertTransferDebugPair() local
1191 ProcessVarLoc(VL); in insertTransferDebugPair()
1194 VL.dump(TRI); in insertTransferDebugPair()
1365 const VarLoc &VL = VarLocIDs[Idx]; in transferSpillOrRestoreInst() local
1366 assert(VL.Kind == VarLoc::SpillLocKind && "Broken VarLocSet?"); in transferSpillOrRestoreInst()
1367 if (VL.Loc.SpillLocation == *Loc) { in transferSpillOrRestoreInst()
1379 VarLoc UndefVL = VarLoc::CreateCopyLoc(VL.MI, LS, 0); in transferSpillOrRestoreInst()
1410 const VarLoc &VL = VarLocIDs[Idx]; in transferSpillOrRestoreInst() local
1412 assert(VL.isDescribedByReg() == Reg && "Broken VarLocSet?"); in transferSpillOrRestoreInst()
1414 << VL.Var.getVariable()->getName() << ")\n"); in transferSpillOrRestoreInst()
1417 VL.Kind == VarLoc::SpillLocKind && "Broken VarLocSet?"); in transferSpillOrRestoreInst()
1418 if (VL.Loc.SpillLocation != *Loc) in transferSpillOrRestoreInst()
1422 << VL.Var.getVariable()->getName() << ")\n"); in transferSpillOrRestoreInst()
1473 const VarLoc &VL = VarLocIDs[Idx]; in transferRegisterCopy() local
1474 if (VL.getEntryValueBackupReg() == SrcReg) { in transferRegisterCopy()
1477 VarLoc::CreateEntryCopyBackupLoc(VL.MI, LS, VL.Expr, DestReg); in transferRegisterCopy()
1480 OpenRanges.erase(VL); in transferRegisterCopy()
1942 const VarLoc &VL = VarLocIDs[TR.LocationID]; in ExtendRanges() local
1943 MachineInstr *MI = VL.BuildDbgValue(MF); in ExtendRanges()