Lines Matching refs:DVR

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