| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DebugProgramInstruction.cpp | 42 DPValue::DPValue(const DPValue &DPV) in DPValue() argument 43 : DebugValueUser(DPV.DebugValues), Variable(DPV.getVariable()), in DPValue() 44 Expression(DPV.getExpression()), DbgLoc(DPV.getDebugLoc()), in DPValue() 45 AddressExpression(DPV.AddressExpression), Type(DPV.getType()) {} in DPValue() 402 DPValue *DPV = &*It; in dropDPValues() local 404 DPV->deleteInstr(); in dropDPValues() 411 DPV->deleteInstr(); in dropOneDPValue() 493 DPV.setMarker(this); in absorbDebugValues() 500 for (DPValue &DPV : Range) in absorbDebugValues() 501 DPV.setMarker(this); in absorbDebugValues() [all …]
|
| H A D | DebugInfo.cpp | 78 Declares.push_back(DPV); in findDPVDeclares() 116 DPValues->push_back(DPV); in findDbgIntrinsics() 131 DPValues->push_back(DPV); in findDbgIntrinsics() 244 processDPValue(M, DPV); in processInstruction() 255 processVariable(M, DPV.getVariable()); in processDPValue() 1803 for (auto *DPV : DPVAssigns) in deleteAssignmentMarkers() local 1804 DPV->eraseFromParent(); in deleteAssignmentMarkers() 1826 if (DPV.isDbgAssign()) in deleteAll() 1836 for (auto *DPV : DPToDelete) in deleteAll() local 1837 DPV->eraseFromParent(); in deleteAll() [all …]
|
| H A D | BasicBlock.cpp | 89 for (DPValue *DPV : DPVals) in convertToNewDbgValues() 90 Marker->insertDPValue(DPV, false); in convertToNewDbgValues() 108 for (DPValue &DPV : Marker.getDbgValueRange()) in convertFromNewDbgValues() 110 DPV.createDebugIntrinsic(getModule(), nullptr)); in convertFromNewDbgValues() 164 for (DPValue &DPV : CurrentDebugMarker->getDbgValueRange()) { in validateDbgValues() 166 TestFailure(DPV.getMarker() == CurrentDebugMarker, in validateDbgValues() 1080 void BasicBlock::insertDPValueAfter(DPValue *DPV, Instruction *I) { in insertDPValueAfter() argument 1088 NextMarker->insertDPValue(DPV, true); in insertDPValueAfter() 1091 void BasicBlock::insertDPValueBefore(DPValue *DPV, in insertDPValueBefore() argument 1100 Where->DbgMarker->insertDPValue(DPV, InsertAtHead); in insertDPValueBefore()
|
| H A D | Value.cpp | 583 for (auto *DPV : DPUsers) { in replaceDbgUsesOutsideBlock() local 584 DPMarker *Marker = DPV->getMarker(); in replaceDbgUsesOutsideBlock() 586 DPV->replaceVariableLocationOp(V, New); in replaceDbgUsesOutsideBlock()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 616 for (auto *DPV : DPUsers) in replaceDbgUsesWithUndef() local 617 DPV->setKillLocation(); in replaceDbgUsesWithUndef() 1582 if ((DPV->getVariable() == DIVar) && (DPV->getExpression() == DIExpr)) in PhiHasDebugValue() 1756 assert(DPV->isAddressOfVariable() || DPV->isDbgAssign()); in ConvertDebugDeclareToDebugValue() 2158 assert(DPV); in updateOneDbgValueForAlloca() 2178 updateOneDbgValueForAlloca(DPV->getDebugLoc(), DPV->getVariable(), in replaceDbgValueForAlloca() 2294 for (auto *DPV : DPUsers) { in salvageDebugInfoForDbgValues() local 2363 for (auto *DPV : DPUsers) in salvageDebugInfoForDbgValues() local 2364 DPV->setKillLocation(); in salvageDebugInfoForDbgValues() 3533 for (auto *DPV : DPUsers) in dropDebugUsers() local [all …]
|
| H A D | SSAUpdater.cpp | 209 for (auto &DPV : DPValues) { in UpdateDebugValues() local 210 if (DPV->getParent() == I->getParent()) in UpdateDebugValues() 212 UpdateDebugValue(I, DPV); in UpdateDebugValues() 225 for (auto &DPV : DPValues) { in UpdateDebugValues() local 226 UpdateDebugValue(I, DPV); in UpdateDebugValues() 239 void SSAUpdater::UpdateDebugValue(Instruction *I, DPValue *DPV) { in UpdateDebugValue() argument 240 BasicBlock *UserBB = DPV->getParent(); in UpdateDebugValue() 243 DPV->replaceVariableLocationOp(I, NewVal); in UpdateDebugValue() 245 DPV->setKillLocation(); in UpdateDebugValue()
|
| H A D | LoopRotationUtils.cpp | 187 for (DPValue *DPV : DPValues) { in RewriteUsesOfClonedInstructions() 190 BasicBlock *UserBB = DPV->getMarker()->getParent(); in RewriteUsesOfClonedInstructions() 557 for (const DPValue &DPV : DII->getDbgValueRange()) in rotateLoop() local 558 DbgIntrinsics.insert(makeHash(&DPV)); in rotateLoop() 566 for (const DPValue &DPV : in rotateLoop() local 568 DbgIntrinsics.insert(makeHash(&DPV)); in rotateLoop() 621 if (DbgIntrinsics.count(makeHash(&DPV))) in rotateLoop() 622 DPV.eraseFromParent(); in rotateLoop() 644 for (DPValue &DPV : make_early_inc_range(Range)) in rotateLoop() 645 if (DbgIntrinsics.count(makeHash(&DPV))) in rotateLoop() [all …]
|
| H A D | BasicBlockUtils.cpp | 402 DebugVariable Key(DPV.getVariable(), DPV.getExpression(), in DPValuesRemoveRedundantDbgInstrsUsingBackwardScan() 411 if (DPV.isDbgAssign()) { in DPValuesRemoveRedundantDbgInstrsUsingBackwardScan() 418 ToBeRemoved.push_back(&DPV); in DPValuesRemoveRedundantDbgInstrsUsingBackwardScan() 427 for (auto &DPV : ToBeRemoved) in DPValuesRemoveRedundantDbgInstrsUsingBackwardScan() local 428 DPV->eraseFromParent(); in DPValuesRemoveRedundantDbgInstrsUsingBackwardScan() 508 (!DPV.isDbgAssign() || at::getAssignmentInsts(&DPV).empty()); in DPValuesRemoveRedundantDbgInstrsUsingForwardScan() 529 for (auto *DPV : ToBeRemoved) in DPValuesRemoveRedundantDbgInstrsUsingForwardScan() local 530 DPV->eraseFromParent(); in DPValuesRemoveRedundantDbgInstrsUsingForwardScan() 549 if (!DPV.isDbgValue() && !DPV.isDbgAssign()) in DPValuesRemoveUndefDbgAssignsFromEntryBlock() 552 (DPV.isDbgValue() || at::getAssignmentInsts(&DPV).empty()); in DPValuesRemoveUndefDbgAssignsFromEntryBlock() [all …]
|
| H A D | CodeExtractor.cpp | 1516 for (DPValue *DPV : DPValues) in eraseDebugIntrinsicsWithNonLocalRefs() 1517 if (DPV->getFunction() != &F) in eraseDebugIntrinsicsWithNonLocalRefs() 1518 DPV->eraseFromParent(); in eraseDebugIntrinsicsWithNonLocalRefs() 1589 for (auto &DPV : I.getDbgValueRange()) { in fixupDebugInfoPostExtraction() local 1593 DPVsToDelete.push_back(&DPV); in fixupDebugInfoPostExtraction() 1596 if (DPV.isDbgAssign() && IsInvalidLocation(DPV.getAddress())) { in fixupDebugInfoPostExtraction() 1597 DPVsToDelete.push_back(&DPV); in fixupDebugInfoPostExtraction() 1601 DPV.setVariable(GetUpdatedDIVariable(DPV.getVariable())); in fixupDebugInfoPostExtraction() 1602 DPV.setDebugLoc(DebugLoc::replaceInlinedAtSubprogram(DPV.getDebugLoc(), in fixupDebugInfoPostExtraction() 1651 for (auto *DPV : DPVsToDelete) in fixupDebugInfoPostExtraction() local [all …]
|
| H A D | PromoteMemoryToRegister.cpp | 136 for (DPValue *DPV : at::getDPVAssignmentMarkers(AI)) { in init() 137 if (Vars.insert(DebugVariable(DPV)).second) in init() 138 DPVAssigns.push_back(DPV); in init() 197 for (auto *DPV : DPVAssigns) in updateForNewPhi() local 198 ConvertDebugDeclareToDebugValue(DPV, NewPhi, DIB); in updateForNewPhi() 274 [](DPValue *DPV) { return !DPV->isDbgAssign(); }); in AnalyzeAlloca() argument 432 for (auto *DPV : DPVAssignsToDelete) in cleanUpDbgAssigns() local 433 DPV->eraseFromParent(); in cleanUpDbgAssigns()
|
| H A D | LCSSA.cpp | 264 for (DPValue *DPV : DPValues) { in formLCSSAForInstructions() 265 BasicBlock *UserBB = DPV->getMarker()->getParent(); in formLCSSAForInstructions() 274 DPV->replaceVariableLocationOp(I, V); in formLCSSAForInstructions()
|
| H A D | InlineFunction.cpp | 1713 auto UpdateDPV = [&](DPValue *DPV) { in fixupLineNumbers() argument 1714 assert(DPV->getDebugLoc() && "Debug Value must have debug loc"); in fixupLineNumbers() 1716 DPV->setDebugLoc(TheCallDL); in fixupLineNumbers() 1719 DebugLoc DL = DPV->getDebugLoc(); in fixupLineNumbers() 1722 DPV->getMarker()->getParent()->getContext(), IANodes); in fixupLineNumbers() 1723 DPV->setDebugLoc(IDL); in fixupLineNumbers() 1731 for (DPValue &DPV : BI->getDbgValueRange()) { in fixupLineNumbers() 1732 UpdateDPV(&DPV); in fixupLineNumbers() 1832 for (DPValue &DPV : I.getDbgValueRange()) { in fixupAssignments() 1833 if (DPV.isDbgAssign()) in fixupAssignments() [all …]
|
| H A D | LoopUtils.cpp | 635 for (DPValue &DPV : in deleteDeadLoop() 637 DebugVariable Key(DPV.getVariable(), DPV.getExpression(), in deleteDeadLoop() 638 DPV.getDebugLoc().get()); in deleteDeadLoop() 642 DPV.removeFromParent(); in deleteDeadLoop() 643 DeadDPValues.push_back(&DPV); in deleteDeadLoop() 678 for (DPValue *DPV : llvm::reverse(DeadDPValues)) in deleteDeadLoop() 679 ExitBlock->insertDPValueBefore(DPV, InsertDbgValueBefore); in deleteDeadLoop()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AssignmentTrackingAnalysis.cpp | 1460 assert(DPV.isDbgAssign() && in getIDFromMarker() 1462 return DPV.getAssignID(); in getIDFromMarker() 1518 assert(DPV->isDbgAssign() && in CastToDbgAssign() 1520 return DPV; in CastToDbgAssign() 1760 ProcessLinkedAssign(DPV); in processTaggedInstruction() 1868 if (DPV.isDbgAssign()) in processDPValue() 1870 else if (DPV.isDbgValue()) in processDPValue() 2123 return DPV->isDbgDeclare() ? DPV : nullptr; in DynCastToDbgDeclare() 2269 FnVarLocs->addSingleLocVar(DebugVariable(DPV), DPV->getExpression(), in buildOverlapMapAndRecordDeclares() 2466 if (DPV.isDbgValue() || DPV.isDbgAssign()) in emitPromotedVarLocs() [all …]
|
| H A D | CodeGenPrepare.cpp | 3173 DPV->replaceVariableLocationOp(New, Inst); in undo() 8453 for (DPValue &DPV : I.getDbgValueRange()) in fixupDPValuesOnInst() 8454 AnyChange |= fixupDPValue(DPV); in fixupDPValuesOnInst() 8460 bool CodeGenPrepare::fixupDPValue(DPValue &DPV) { in fixupDPValue() argument 8461 if (DPV.Type != DPValue::LocationType::Value) in fixupDPValue() 8477 DPV.replaceVariableLocationOp(Location, SunkAddr); in fixupDPValue() 8492 static void DbgInserterHelper(DPValue *DPV, Instruction *VI) { in DbgInserterHelper() argument 8493 DPV->removeFromParent(); in DbgInserterHelper() 8498 VIBB->insertDPValueAfter(DPV, VI); in DbgInserterHelper() 8566 if (DPV.Type != DPValue::LocationType::Value) in placeDbgValues() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DebugInfo.h | 61 DebugLoc getDebugValueLoc(DPValue *DPV); 113 void processDPValue(const Module &M, const DPValue &DPV); 196 inline AssignmentInstRange getAssignmentInsts(const DPValue *DPV) { in getAssignmentInsts() argument 197 assert(DPV->isDbgAssign() && in getAssignmentInsts() 199 return getAssignmentInsts(DPV->getAssignID()); in getAssignmentInsts() 279 VarRecord(DPValue *DPV) in VarRecord() 280 : Var(DPV->getVariable()), DL(getDebugValueLoc(DPV)) {} in VarRecord()
|
| H A D | DebugProgramInstruction.h | 123 DPValue(const DPValue &DPV); 431 void dropOneDPValue(DPValue *DPV);
|
| H A D | BasicBlock.h | 133 void insertDPValueAfter(DPValue *DPV, Instruction *I); 136 void insertDPValueBefore(DPValue *DPV, InstListType::iterator Here);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ADCE.cpp | 551 for (DPValue &DPV : make_early_inc_range(I.getDbgValueRange())) { in removeDeadInstructions() 554 if (DPV.isDbgAssign()) in removeDeadInstructions() 555 if (!at::getAssignmentInsts(&DPV).empty()) in removeDeadInstructions() 557 if (AliveScopes.count(DPV.getDebugLoc()->getScope())) in removeDeadInstructions() 559 I.dropOneDbgValue(&DPV); in removeDeadInstructions()
|
| H A D | JumpThreading.cpp | 404 for (DPValue &DPV : I.getDbgValueRange()) in replaceFoldableUses() 405 DPV.replaceVariableLocationOp(Cond, ToVal, true); in replaceFoldableUses() 2049 auto RetargetDPValueIfPossible = [&](DPValue *DPV) { in cloneInstructions() argument 2051 for (auto *Op : DPV->location_ops()) { in cloneInstructions() 2062 DPV->replaceVariableLocationOp(OldOp, MappedOp); in cloneInstructions() 2087 for (DPValue &DPV : DPVRange) in cloneInstructions() 2088 RetargetDPValueIfPossible(&DPV); in cloneInstructions() 2122 for (DPValue &DPV : DPVRange) in cloneInstructions() 2123 RetargetDPValueIfPossible(&DPV); in cloneInstructions()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | Local.h | 265 void ConvertDebugDeclareToDebugValue(DPValue *DPV, StoreInst *SI, 272 void ConvertDebugDeclareToDebugValue(DPValue *DPV, LoadInst *LI, 279 void ConvertDebugDeclareToDebugValue(DPValue *DPV, PHINode *LI,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 1928 for (auto &DPV : U->getDbgValueRange()) in insertSpills() local 1984 for (auto *DPV : DPValues) in insertSpills() local 1985 DPV->replaceVariableLocationOp(Alloca, G); in insertSpills() 2966 Function *F = DPV.getFunction(); in salvageDebugInfo() 2969 bool SkipOutermostLoad = DPV.isDbgDeclare(); in salvageDebugInfo() 2970 Value *OriginalStorage = DPV.getVariableLocationOp(0); in salvageDebugInfo() 2974 DPV.getExpression(), SkipOutermostLoad); in salvageDebugInfo() 2982 DPV.setExpression(Expr); in salvageDebugInfo() 2994 DPV.setDebugLoc(I->getDebugLoc()); in salvageDebugInfo() 2998 DPV.removeFromParent(); in salvageDebugInfo() [all …]
|
| H A D | CoroInternal.h | 37 SmallDenseMap<Argument *, AllocaInst *, 4> &ArgToAllocaMap, DPValue &DPV,
|
| H A D | CoroSplit.cpp | 733 for (DPValue &DPV : I.getDbgValueRange()) in collectDbgVariableIntrinsics() 734 DPValues.push_back(&DPV); in collectDbgVariableIntrinsics() 755 for (DPValue *DPV : DPValues) in salvageDebugInfo() 756 coro::salvageDebugInfo(ArgToAllocaMap, *DPV, Shape.OptimizeFrame, in salvageDebugInfo() 2054 for (DPValue *DPV : DPValues) in splitCoroutine() 2055 coro::salvageDebugInfo(ArgToAllocaMap, *DPV, Shape.OptimizeFrame, in splitCoroutine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FastISel.cpp | 1191 for (DPValue &DPV : llvm::reverse(II->getDbgValueRange())) { in handleDbgInfo() 1196 if (!DPV.hasArgList()) in handleDbgInfo() 1197 V = DPV.getVariableLocationOp(0); in handleDbgInfo() 1200 if (DPV.getType() == DPValue::LocationType::Value) { in handleDbgInfo() 1201 Res = lowerDbgValue(V, DPV.getExpression(), DPV.getVariable(), in handleDbgInfo() 1202 DPV.getDebugLoc()); in handleDbgInfo() 1204 assert(DPV.getType() == DPValue::LocationType::Declare); in handleDbgInfo() 1205 if (FuncInfo.PreprocessedDPVDeclares.contains(&DPV)) in handleDbgInfo() 1207 Res = lowerDbgDeclare(V, DPV.getExpression(), DPV.getVariable(), in handleDbgInfo() 1208 DPV.getDebugLoc()); in handleDbgInfo() [all …]
|