Lines Matching defs:DVR
398 DbgVariableRecord &DVR = cast<DbgVariableRecord>(DR);
401 if (DVR.getType() == DbgVariableRecord::LocationType::Declare) {
411 DebugVariable Key(DVR.getVariable(), DVR.getExpression(),
412 DVR.getDebugLoc()->getInlinedAt());
420 if (DVR.isDbgAssign()) {
422 if (!at::getAssignmentInsts(&DVR).empty())
427 ToBeRemoved.push_back(&DVR);
435 for (auto &DVR : ToBeRemoved)
436 DVR->eraseFromParent();
509 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) {
510 if (DVR.getType() == DbgVariableRecord::LocationType::Declare)
512 DebugVariable Key(DVR.getVariable(), std::nullopt,
513 DVR.getDebugLoc()->getInlinedAt());
518 (!DVR.isDbgAssign() || at::getAssignmentInsts(&DVR).empty());
522 SmallVector<Value *, 4> Values(DVR.location_ops());
524 VMI->second.second != DVR.getExpression()) {
526 VariableMap[Key] = {Values, DVR.getExpression()};
535 ToBeRemoved.push_back(&DVR);
539 for (auto *DVR : ToBeRemoved)
540 DVR->eraseFromParent();
551 auto GetAggregateVariable = [](const DbgVariableRecord &DVR) {
552 return DebugVariable(DVR.getVariable(), std::nullopt,
553 DVR.getDebugLoc().getInlinedAt());
559 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) {
560 if (!DVR.isDbgValue() && !DVR.isDbgAssign())
563 (DVR.isDbgValue() || at::getAssignmentInsts(&DVR).empty());
564 DebugVariable Aggregate = GetAggregateVariable(DVR);
566 bool IsKill = DVR.isKillLocation() && IsDbgValueKind;
569 } else if (DVR.isDbgAssign()) {
570 ToBeRemoved.push_back(&DVR);
576 for (DbgVariableRecord *DVR : ToBeRemoved)
577 DVR->eraseFromParent();