Lines Matching refs:Var
247 DebugVariable Var; member
250 UseBeforeDef(ArrayRef<DbgOp> Values, const DebugVariable &Var, in UseBeforeDef()
252 : Values(Values.begin(), Values.end()), Var(Var), in UseBeforeDef()
348 DebugVariable Var, DbgValue Value) { in loadVarInloc() argument
389 recoverAsEntryValue(Var, Value.Properties, Num); in loadVarInloc()
407 addUseBeforeDef(Var, Value.Properties, DbgOps, in loadVarInloc()
416 ActiveMLocs[Op.Loc].insert(Var); in loadVarInloc()
418 auto Result = ActiveVLocs.insert(std::make_pair(Var, NewValue)); in loadVarInloc()
422 MTracker->emitLoc(ResolvedDbgOps, Var, Value.Properties)); in loadVarInloc()
481 for (const auto &Var : VLocs) { in loadInlocs() local
482 loadVarInloc(MBB, DbgOpStore, ValueToLoc, Var.first, Var.second); in loadInlocs()
489 void addUseBeforeDef(const DebugVariable &Var, in addUseBeforeDef() argument
492 UseBeforeDefs[Inst].emplace_back(DbgOps, Var, Properties); in addUseBeforeDef()
493 UseBeforeDefVariables.insert(Var); in addUseBeforeDef()
512 if (!UseBeforeDefVariables.count(Use.Var)) in checkInstForNewValues()
551 if (!UseBeforeDefVariables.count(Use.Var)) in checkInstForNewValues()
575 MTracker->emitLoc(DbgOps, Use.Var, Use.Properties)); in checkInstForNewValues()
596 bool isEntryValueVariable(const DebugVariable &Var, in isEntryValueVariable() argument
598 if (!Var.getVariable()->isParameter()) in isEntryValueVariable()
601 if (Var.getInlinedAt()) in isEntryValueVariable()
625 bool recoverAsEntryValue(const DebugVariable &Var, in recoverAsEntryValue() argument
647 if (!isEntryValueVariable(Var, DIExpr)) in recoverAsEntryValue()
661 emitMOLoc(MO, Var, {NewExpr, Prop.Indirect, false})); in recoverAsEntryValue()
667 DebugVariable Var(MI.getDebugVariable(), MI.getDebugExpression(), in redefVar() local
675 auto It = ActiveVLocs.find(Var); in redefVar()
678 ActiveMLocs[Loc].erase(Var); in redefVar()
682 UseBeforeDefVariables.erase(Var); in redefVar()
706 DebugVariable Var(MI.getDebugVariable(), MI.getDebugExpression(), in redefVar() local
709 UseBeforeDefVariables.erase(Var); in redefVar()
712 auto It = ActiveVLocs.find(Var); in redefVar()
715 ActiveMLocs[Loc].erase(Var); in redefVar()
752 It = ActiveVLocs.find(Var); in redefVar()
757 ActiveMLocs[NewLoc].insert(Var); in redefVar()
762 std::make_pair(Var, ResolvedDbgValue(NewLocs, Properties))); in redefVar()
805 for (const auto &Var : ActiveMLocIt->second) { in clobberMloc() local
806 auto &Prop = ActiveVLocs.find(Var)->second.Properties; in clobberMloc()
807 recoverAsEntryValue(Var, Prop, OldValue); in clobberMloc()
818 for (const auto &Var : ActiveMLocIt->second) { in clobberMloc() local
819 auto ActiveVLocIt = ActiveVLocs.find(Var); in clobberMloc()
838 PendingDbgValues.push_back(MTracker->emitLoc(DbgOps, Var, Properties)); in clobberMloc()
845 LostMLocs.emplace_back(Loc, Var); in clobberMloc()
850 NewMLocs.insert(Var); in clobberMloc()
874 for (auto &Var : NewMLocs) in clobberMloc() local
875 ActiveMLocs[*NewLoc].insert(Var); in clobberMloc()
898 for (const auto &Var : MovingVars) { in transferMlocs() local
899 auto ActiveVLocIt = ActiveVLocs.find(Var); in transferMlocs()
906 MachineInstr *MI = MTracker->emitLoc(ActiveVLocIt->second.Ops, Var, in transferMlocs()
920 const DebugVariable &Var, in emitMOLoc() argument
922 DebugLoc DL = DILocation::get(Var.getVariable()->getContext(), 0, 0, in emitMOLoc()
923 Var.getVariable()->getScope(), in emitMOLoc()
924 const_cast<DILocation *>(Var.getInlinedAt())); in emitMOLoc()
931 MIB.addMetadata(Var.getVariable()); in emitMOLoc()
1159 const DebugVariable &Var, in emitLoc() argument
1161 DebugLoc DL = DILocation::get(Var.getVariable()->getContext(), 0, 0, in emitLoc()
1162 Var.getVariable()->getScope(), in emitLoc()
1163 const_cast<DILocation *>(Var.getInlinedAt())); in emitLoc()
1193 return BuildMI(MF, DL, Desc, false, MOs, Var.getVariable(), in emitLoc()
1254 if (auto Fragment = Var.getFragment()) { in emitLoc()
1258 } else if (auto Size = Var.getVariable()->getSizeInBits()) { in emitLoc()
1307 return BuildMI(MF, DL, Desc, Indirect, MOs, Var.getVariable(), Expr); in emitLoc()
1581 const DILocalVariable *Var = MI.getDebugVariable(); in transferDebugInstrRef() local
1585 assert(Var->isValidLocationForIntrinsic(DebugLoc) && in transferDebugInstrRef()
1588 DebugVariable V(Var, Expr, InlinedAt); in transferDebugInstrRef()
3169 for (const auto &Var : VarsWeCareAbout) { in buildVLocValueMap() local
3183 if (TransferFunc.contains(Var)) in buildVLocValueMap()
3193 AllTheVLocs, Var, Output); in buildVLocValueMap()
3266 auto TransferIt = VTracker.Vars.find(Var); in buildVLocValueMap()
3329 Var.getFragment() && "Fragment info missing during value prop"); in buildVLocValueMap()
3330 Output[MBB->getNumber()].push_back(std::make_pair(Var, *BlockLiveIn)); in buildVLocValueMap()
3341 const DebugVariable &Var, LiveInsT &Output) { in placePHIsForSingleVarDefinition() argument
3354 auto ValueIt = VLocs.Vars.find(Var); in placePHIsForSingleVarDefinition()
3369 Output[ScopeBlock->getNumber()].push_back({Var, Value}); in placePHIsForSingleVarDefinition()
3610 DebugVariable Var(MI->getDebugVariable(), MI->getDebugExpression(), in emitTransfers() local
3612 Insts.emplace_back(AllVarsNumbering.find(Var)->second, MI); in emitTransfers()
3762 const auto &Var = idx.first; in ExtendRanges() local
3763 const DILocation *ScopeLoc = VTracker->Scopes[Var]; in ExtendRanges()
3770 AllVarsNumbering.insert(std::make_pair(Var, AllVarsNumbering.size())); in ExtendRanges()
3771 ScopeToVars[Scope].insert(Var); in ExtendRanges()