Lines Matching refs:Var

757   MachineInstrBuilder emitLoc(Optional<LocIdx> MLoc, const DebugVariable &Var,  in emitLoc()  argument
759 DebugLoc DL = DILocation::get(Var.getVariable()->getContext(), 0, 0, in emitLoc()
760 Var.getVariable()->getScope(), in emitLoc()
761 const_cast<DILocation *>(Var.getInlinedAt())); in emitLoc()
788 MIB.addMetadata(Var.getVariable()); in emitLoc()
912 DebugVariable Var(MI.getDebugVariable(), MI.getDebugExpression(), in defVar() local
918 auto Result = Vars.insert(std::make_pair(Var, Rec)); in defVar()
921 Scopes[Var] = MI.getDebugLoc().get(); in defVar()
927 DebugVariable Var(MI.getDebugVariable(), MI.getDebugExpression(), in defVar() local
933 auto Result = Vars.insert(std::make_pair(Var, Rec)); in defVar()
936 Scopes[Var] = MI.getDebugLoc().get(); in defVar()
1010 DebugVariable Var; member
1088 for (auto Var : VLocs) { in loadInlocs() local
1089 if (Var.second.Kind == DbgValue::Const) { in loadInlocs()
1091 emitMOLoc(Var.second.MO, Var.first, Var.second.Properties)); in loadInlocs()
1096 const ValueIDNum &Num = Var.second.ID; in loadInlocs()
1102 addUseBeforeDef(Var.first, Var.second.Properties, Num); in loadInlocs()
1104 recoverAsEntryValue(Var.first, Var.second.Properties, Num); in loadInlocs()
1109 auto NewValue = LocAndProperties{M, Var.second.Properties}; in loadInlocs()
1110 auto Result = ActiveVLocs.insert(std::make_pair(Var.first, NewValue)); in loadInlocs()
1113 ActiveMLocs[M].insert(Var.first); in loadInlocs()
1115 MTracker->emitLoc(M, Var.first, Var.second.Properties)); in loadInlocs()
1122 void addUseBeforeDef(const DebugVariable &Var, in addUseBeforeDef() argument
1124 UseBeforeDef UBD = {ID, Var, Properties}; in addUseBeforeDef()
1126 UseBeforeDefVariables.insert(Var); in addUseBeforeDef()
1150 if (!UseBeforeDefVariables.count(Use.Var)) in checkInstForNewValues()
1153 PendingDbgValues.push_back(MTracker->emitLoc(L, Use.Var, Use.Properties)); in checkInstForNewValues()
1174 bool isEntryValueVariable(const DebugVariable &Var, in isEntryValueVariable() argument
1176 if (!Var.getVariable()->isParameter()) in isEntryValueVariable()
1179 if (Var.getInlinedAt()) in isEntryValueVariable()
1203 bool recoverAsEntryValue(const DebugVariable &Var, DbgValueProperties &Prop, in recoverAsEntryValue() argument
1211 if (!isEntryValueVariable(Var, Prop.DIExpr)) in recoverAsEntryValue()
1225 PendingDbgValues.push_back(emitMOLoc(MO, Var, {NewExpr, Prop.Indirect})); in recoverAsEntryValue()
1231 DebugVariable Var(MI.getDebugVariable(), MI.getDebugExpression(), in redefVar() local
1239 auto It = ActiveVLocs.find(Var); in redefVar()
1241 ActiveMLocs[It->second.Loc].erase(Var); in redefVar()
1245 UseBeforeDefVariables.erase(Var); in redefVar()
1259 DebugVariable Var(MI.getDebugVariable(), MI.getDebugExpression(), in redefVar() local
1262 UseBeforeDefVariables.erase(Var); in redefVar()
1265 auto It = ActiveVLocs.find(Var); in redefVar()
1267 ActiveMLocs[It->second.Loc].erase(Var); in redefVar()
1285 ActiveMLocs[NewLoc].insert(Var); in redefVar()
1288 std::make_pair(Var, LocAndProperties{NewLoc, Properties})); in redefVar()
1320 for (auto &Var : ActiveMLocIt->second) { in clobberMloc() local
1321 auto &Prop = ActiveVLocs.find(Var)->second.Properties; in clobberMloc()
1322 recoverAsEntryValue(Var, Prop, OldValue); in clobberMloc()
1330 for (auto &Var : ActiveMLocIt->second) { in clobberMloc() local
1331 auto ActiveVLocIt = ActiveVLocs.find(Var); in clobberMloc()
1337 PendingDbgValues.push_back(MTracker->emitLoc(NewLoc, Var, Properties)); in clobberMloc()
1345 NewMLocs.insert(Var); in clobberMloc()
1351 for (auto &Var : NewMLocs) in clobberMloc() local
1352 ActiveMLocs[*NewLoc].insert(Var); in clobberMloc()
1379 for (auto &Var : ActiveMLocs[Src]) { in transferMlocs() local
1380 auto ActiveVLocIt = ActiveVLocs.find(Var); in transferMlocs()
1386 MTracker->emitLoc(Dst, Var, ActiveVLocIt->second.Properties); in transferMlocs()
1399 const DebugVariable &Var, in emitMOLoc() argument
1401 DebugLoc DL = DILocation::get(Var.getVariable()->getContext(), 0, 0, in emitMOLoc()
1402 Var.getVariable()->getScope(), in emitMOLoc()
1403 const_cast<DILocation *>(Var.getInlinedAt())); in emitMOLoc()
1410 MIB.addMetadata(Var.getVariable()); in emitMOLoc()
1666 pickVPHILoc(MachineBasicBlock &MBB, const DebugVariable &Var,
1746 const DILocalVariable *Var = MI.getDebugVariable(); in transferDebugValue() local
1750 assert(Var->isValidLocationForIntrinsic(DebugLoc) && in transferDebugValue()
1753 DebugVariable V(Var, Expr, InlinedAt); in transferDebugValue()
1807 const DILocalVariable *Var = MI.getDebugVariable(); in transferDebugInstrRef() local
1811 assert(Var->isValidLocationForIntrinsic(DebugLoc) && in transferDebugInstrRef()
1814 DebugVariable V(Var, Expr, InlinedAt); in transferDebugInstrRef()
2818 MachineBasicBlock &MBB, const DebugVariable &Var, const LiveIdxT &LiveOuts, in pickVPHILoc() argument
2842 auto It = LiveOutMap->second->find(Var); in pickVPHILoc()
2961 …auto ConfirmNoVal = [&ConfirmValue, &MBB](const DebugVariable &Var, const DbgValueProperties &Prop… in vlocJoin() argument
2964 ConfirmValue(Var, NoLocPHIVal); in vlocJoin()
2968 for (auto &Var : AllVars) { in vlocJoin() local
2995 auto VIt = OL->second->find(Var); in vlocJoin()
3094 auto OldLiveInIt = ILS.find(Var); in vlocJoin()
3116 ConfirmValue(Var, FirstVal); in vlocJoin()
3121 ConfirmValue(Var, FirstVal); in vlocJoin()
3127 ConfirmValue(Var, DbgValue(FirstID, Properties, DbgValue::Def)); in vlocJoin()
3131 ConfirmValue(Var, DbgValue(FirstID, Properties, DbgValue::Def)); in vlocJoin()
3134 ConfirmValue(Var, DbgValue(FirstID, Properties, DbgValue::Proposed)); in vlocJoin()
3142 pickVPHILoc(MBB, Var, VLOCOutLocs, MOutLocs, MInLocs, BlockOrders); in vlocJoin()
3154 ConfirmValue(Var, DbgValue(*VPHI, Properties, K)); in vlocJoin()
3160 ConfirmValue(Var, NoBEValue); in vlocJoin()
3162 ConfirmNoVal(Var, Properties); in vlocJoin()
3166 ConfirmNoVal(Var, Properties); in vlocJoin()
3634 const auto &Var = idx.first; in ExtendRanges() local
3635 const DILocation *ScopeLoc = VTracker->Scopes[Var]; in ExtendRanges()
3642 AllVarsNumbering.insert(std::make_pair(Var, AllVarsNumbering.size())); in ExtendRanges()
3643 ScopeToVars[Scope].insert(Var); in ExtendRanges()