| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 622 for (auto *DVR : DPUsers) in replaceDbgUsesWithUndef() local 623 DVR->setKillLocation(); in replaceDbgUsesWithUndef() 1619 for (auto *DVR : DbgVariableRecords) { in PhiHasDebugValue() local 1620 assert(is_contained(DVR->location_ops(), APN)); in PhiHasDebugValue() 1621 if ((DVR->getVariable() == DIVar) && (DVR->getExpression() == DIExpr)) in PhiHasDebugValue() 1662 static bool valueCoversEntireFragment(Type *ValTy, DbgVariableRecord *DVR) { in valueCoversEntireFragment() argument 1663 const DataLayout &DL = DVR->getModule()->getDataLayout(); in valueCoversEntireFragment() 1666 DVR->getExpression()->getActiveBits(DVR->getVariable())) in valueCoversEntireFragment() 1672 if (DVR->isAddressOfVariable()) { in valueCoversEntireFragment() 1674 assert(DVR->getNumVariableLocationOps() == 1 && in valueCoversEntireFragment() [all …]
|
| H A D | BasicBlockUtils.cpp | 387 DbgVariableRecord &DVR = cast<DbgVariableRecord>(DR); in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() local 389 DebugVariable Key(DVR.getVariable(), DVR.getExpression(), in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() 390 DVR.getDebugLoc()->getInlinedAt()); in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() 398 if (DVR.isDbgAssign()) { in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() 400 if (!at::getAssignmentInsts(&DVR).empty()) in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() 405 ToBeRemoved.push_back(&DVR); in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() 413 for (auto &DVR : ToBeRemoved) in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() local 414 DVR->eraseFromParent(); in DbgVariableRecordsRemoveRedundantDbgInstrsUsingBackwardScan() 449 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) { in DbgVariableRecordsRemoveRedundantDbgInstrsUsingForwardScan() 450 if (DVR.getType() == DbgVariableRecord::LocationType::Declare) in DbgVariableRecordsRemoveRedundantDbgInstrsUsingForwardScan() [all …]
|
| H A D | MemoryTaggingSupport.cpp | 117 for (DbgVariableRecord &DVR : filterDbgVars(Inst.getDbgRecordRange())) { in visit() 125 if (DVRVec.empty() || DVRVec.back() != &DVR) in visit() 126 DVRVec.push_back(&DVR); in visit() 130 for_each(DVR.location_ops(), AddIfInteresting); in visit() 131 if (DVR.isDbgAssign()) in visit() 132 AddIfInteresting(DVR.getAddress()); in visit() 304 static DbgVariableRecord *DynCastToDbgAssign(DbgVariableRecord *DVR) { in DynCastToDbgAssign() argument 305 return DVR->isDbgAssign() ? DVR : nullptr; in DynCastToDbgAssign()
|
| H A D | SSAUpdater.cpp | 208 for (auto &DVR : DbgVariableRecords) { in UpdateDebugValues() local 209 if (DVR->getParent() == I->getParent()) in UpdateDebugValues() 211 UpdateDebugValue(I, DVR); in UpdateDebugValues() 224 for (auto &DVR : DbgVariableRecords) { in UpdateDebugValues() local 225 UpdateDebugValue(I, DVR); in UpdateDebugValues() 238 void SSAUpdater::UpdateDebugValue(Instruction *I, DbgVariableRecord *DVR) { in UpdateDebugValue() argument 239 BasicBlock *UserBB = DVR->getParent(); in UpdateDebugValue() 242 DVR->replaceVariableLocationOp(I, NewVal); in UpdateDebugValue() 244 DVR->setKillLocation(); in UpdateDebugValue()
|
| H A D | LoopRotationUtils.cpp | 187 for (DbgVariableRecord *DVR : DbgVariableRecords) { in RewriteUsesOfClonedInstructions() 190 BasicBlock *UserBB = DVR->getMarker()->getParent(); in RewriteUsesOfClonedInstructions() 205 DVR->replaceVariableLocationOp(OrigHeaderVal, NewVal); in RewriteUsesOfClonedInstructions() 563 for (const DbgVariableRecord &DVR : in rotateLoop() local 565 DbgRecords.insert(makeHash(&DVR)); in rotateLoop() 629 for (DbgVariableRecord &DVR : in rotateLoop() 631 if (DbgRecords.count(makeHash(&DVR))) in rotateLoop() 632 DVR.eraseFromParent(); in rotateLoop() 658 for (DbgVariableRecord &DVR : in rotateLoop() 660 if (DbgRecords.count(makeHash(&DVR))) in rotateLoop() [all …]
|
| H A D | CodeExtractor.cpp | 1228 for (DbgVariableRecord *DVR : DbgVariableRecords) in eraseDebugIntrinsicsWithNonLocalRefs() 1229 if (DVR->getFunction() != &F) in eraseDebugIntrinsicsWithNonLocalRefs() 1230 DVR->eraseFromParent(); in eraseDebugIntrinsicsWithNonLocalRefs() 1300 for (auto *DVR : DPUsers) in fixupDebugInfoPostExtraction() local 1301 UpdateOrInsertDebugRecord(DVR, Input, NewVal, Expr, DVR->isDbgDeclare()); in fixupDebugInfoPostExtraction() 1366 DbgVariableRecord &DVR = cast<DbgVariableRecord>(DR); in fixupDebugInfoPostExtraction() local 1368 if (any_of(DVR.location_ops(), IsInvalidLocation)) { in fixupDebugInfoPostExtraction() 1369 DVRsToDelete.push_back(&DVR); in fixupDebugInfoPostExtraction() 1374 if (DVR.isDbgAssign() && IsInvalidLocation(DVR.getAddress())) { in fixupDebugInfoPostExtraction() 1375 DVRsToDelete.push_back(&DVR); in fixupDebugInfoPostExtraction() [all …]
|
| H A D | PromoteMemoryToRegister.cpp | 141 for (DbgVariableRecord *DVR : at::getDVRAssignmentMarkers(AI)) { in init() 142 if (Vars.insert(DebugVariable(DVR)).second) in init() 143 DVRAssigns.push_back(DVR); in init() 202 for (auto *DVR : DVRAssigns) in updateForNewPhi() local 203 ConvertDebugDeclareToDebugValue(DVR, NewPhi, DIB); in updateForNewPhi() 279 [](DbgVariableRecord *DVR) { return !DVR->isDbgAssign(); }); in AnalyzeAlloca() argument 473 for (auto *DVR : DVRAssignsToDelete) in cleanUpDbgAssigns() local 474 DVR->eraseFromParent(); in cleanUpDbgAssigns()
|
| H A D | Debugify.cpp | 426 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) in collectDebugInfoMetadata() 427 HandleDbgVariable(&DVR); in collectDebugInfoMetadata() 671 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) in checkDebugInfoMetadata() 672 HandleDbgVariable(&DVR); in checkDebugInfoMetadata() 839 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) in checkDebugifyMetadata() 840 if (DVR.isDbgValue() || DVR.isDbgAssign()) in checkDebugifyMetadata() 841 CheckForMisSized(&DVR); in checkDebugifyMetadata()
|
| H A D | LCSSA.cpp | 266 for (DbgVariableRecord *DVR : DbgVariableRecords) { in formLCSSAForInstructionsImpl() 267 BasicBlock *UserBB = DVR->getMarker()->getParent(); in formLCSSAForInstructionsImpl() 276 DVR->replaceVariableLocationOp(I, V); in formLCSSAForInstructionsImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AssignmentTrackingAnalysis.cpp | 231 for (const DbgVariableRecord &DVR : filterDbgVars(I->getDbgRecordRange())) { in init() local 234 auto It = Builder.VarLocsBeforeInst.find(&DVR); in init() 831 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) { in process() 832 if (const auto *Locs = FnVarLocs->getWedge(&DVR)) { in process() 834 addDef(Loc, &DVR, *I.getParent(), LiveSet); in process() 1335 void processDbgVariableRecord(DbgVariableRecord &DVR, BlockInfo *LiveSet); 1432 static DIAssignID *getIDFromMarker(const DbgVariableRecord &DVR) { in getIDFromMarker() argument 1433 assert(DVR.isDbgAssign() && in getIDFromMarker() 1435 return DVR.getAssignID(); in getIDFromMarker() 1468 VarLocInsertPt getNextNode(const DbgRecord *DVR) { in getNextNode() argument [all …]
|
| H A D | MachineDebugify.cpp | 86 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) { in applyDebugifyMetadataToMachineFunction() 87 if (!DVR.isDbgValue()) in applyDebugifyMetadataToMachineFunction() 89 unsigned Line = DVR.getDebugLoc().getLine(); in applyDebugifyMetadataToMachineFunction() 91 Line2Var[Line] = DVR.getVariable(); in applyDebugifyMetadataToMachineFunction() 93 EarliestDVR = &DVR; in applyDebugifyMetadataToMachineFunction() 94 Expr = DVR.getExpression(); in applyDebugifyMetadataToMachineFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
| H A D | ValueEnumerator.cpp | 147 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) { in orderModule() 148 OrderConstantFromMetadata(DVR.getRawLocation()); in orderModule() 149 if (DVR.isDbgAssign()) in orderModule() 150 OrderConstantFromMetadata(DVR.getRawAddress()); in orderModule() 291 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) { in predictUseListOrder() 292 PredictValueOrderFromMetadata(DVR.getRawLocation()); in predictUseListOrder() 293 if (DVR.isDbgAssign()) in predictUseListOrder() 294 PredictValueOrderFromMetadata(DVR.getRawAddress()); in predictUseListOrder() 453 DbgVariableRecord &DVR = cast<DbgVariableRecord>(DR); in ValueEnumerator() local 454 EnumerateNonLocalValuesFromMetadata(DVR.getRawLocation()); in ValueEnumerator() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | DebugInfo.h | 66 LLVM_ABI DebugLoc getDebugValueLoc(DbgVariableRecord *DVR); 204 inline AssignmentInstRange getAssignmentInsts(const DbgVariableRecord *DVR) { in getAssignmentInsts() argument 205 assert(DVR->isDbgAssign() && in getAssignmentInsts() 207 return getAssignmentInsts(DVR->getAssignID()); in getAssignmentInsts() 295 VarRecord(DbgVariableRecord *DVR) in VarRecord() 296 : Var(DVR->getVariable()), DL(getDebugValueLoc(DVR)) {} in VarRecord()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DebugInfo.cpp | 77 for (DbgVariableRecord *DVR : L->getAllDbgVariableRecordUsers()) in findDVRDeclares() 78 if (DVR->getType() == DbgVariableRecord::LocationType::Declare) in findDVRDeclares() 79 Declares.push_back(DVR); in findDVRDeclares() 94 for (DbgVariableRecord *DVR : L->getAllDbgVariableRecordUsers()) in findDVRValues() 95 if (DVR->isValueOfVariable()) in findDVRValues() 96 Values.push_back(DVR); in findDVRValues() 133 for (DbgVariableRecord *DVR : L->getAllDbgVariableRecordUsers()) { in findDbgIntrinsics() 134 if (!DbgAssignAndValuesOnly || DVR->isDbgValue() || DVR->isDbgAssign()) in findDbgIntrinsics() 135 if (EncounteredDbgVariableRecords.insert(DVR).second) in findDbgIntrinsics() 136 DbgVariableRecords->push_back(DVR); in findDbgIntrinsics() [all …]
|
| H A D | DebugProgramInstruction.cpp | 59 DbgVariableRecord::DbgVariableRecord(const DbgVariableRecord &DVR) in DbgVariableRecord() argument 60 : DbgRecord(ValueKind, DVR.getDebugLoc()), DebugValueUser(DVR.DebugValues), in DbgVariableRecord() 61 Type(DVR.getType()), Variable(DVR.getVariable()), in DbgVariableRecord() 62 Expression(DVR.getExpression()), in DbgVariableRecord() 63 AddressExpression(DVR.AddressExpression) {} in DbgVariableRecord() 705 for (DbgRecord &DVR : Src.StoredDbgRecords) in absorbDebugValues() 706 DVR.setMarker(this); in absorbDebugValues()
|
| H A D | DIBuilder.cpp | 1095 DbgVariableRecord *DVR = DbgVariableRecord::createDVRAssign( in insertDbgAssign() local 1100 insertDbgVariableRecord(DVR, NextIt); in insertDbgAssign() 1101 return DVR; in insertDbgAssign() 1122 DbgVariableRecord *DVR = in insertDbgValueIntrinsic() local 1124 insertDbgVariableRecord(DVR, InsertPt); in insertDbgValueIntrinsic() 1125 return DVR; in insertDbgValueIntrinsic() 1137 DbgVariableRecord *DVR = in insertDeclare() local 1139 insertDbgVariableRecord(DVR, InsertPt); in insertDeclare() 1140 return DVR; in insertDeclare() 1143 void DIBuilder::insertDbgVariableRecord(DbgVariableRecord *DVR, in insertDbgVariableRecord() argument [all …]
|
| H A D | Verifier.cpp | 552 void visit(DbgVariableRecord &DVR); 646 void verifyFnArgs(const DbgVariableRecord &DVR); 698 if (auto *DVR = dyn_cast<DbgVariableRecord>(&DR)) { in visitDbgRecords() local 699 visit(*DVR); in visitDbgRecords() 702 verifyFragmentExpression(*DVR); in visitDbgRecords() 703 verifyNotEntryValue(*DVR); in visitDbgRecords() 5099 for (DbgVariableRecord *DVR : in visitDIAssignIDMetadata() 5101 CheckDI(DVR->isDbgAssign(), in visitDIAssignIDMetadata() 5102 "!DIAssignID should only be used by Assign DVRs.", MD, DVR); in visitDIAssignIDMetadata() 5103 CheckDI(DVR->getFunction() == I.getFunction(), in visitDIAssignIDMetadata() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 532 DbgVariableRecord *DVR = PDVRUnrelatedWL.back(); in eraseInstsUnrelatedToPDI() local 534 LLVM_DEBUG(DVR->print(dbgs())); in eraseInstsUnrelatedToPDI() 536 DVR->eraseFromParent(); in eraseInstsUnrelatedToPDI() 648 for (DbgVariableRecord &DVR : filterDbgVars(BI->getDbgRecordRange())) { in filterInstsUnrelatedToPDI() 649 if (DVR.isDbgValue() || DVR.isDbgAssign()) { in filterInstsUnrelatedToPDI() 650 ExamineDbgValue(&DVR, PDVRRelated); in filterInstsUnrelatedToPDI() 652 assert(DVR.isDbgDeclare()); in filterInstsUnrelatedToPDI() 653 ExamineDbgDeclare(&DVR, PDVRRelated); in filterInstsUnrelatedToPDI() 691 for (DbgVariableRecord &DVR : filterDbgVars(I.getDbgRecordRange())) in filterInstsUnrelatedToPDI() 692 IsPDIRelated(&DVR, PDVRRelated, PDVRUnrelatedWL); in filterInstsUnrelatedToPDI()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | KernelInfo.cpp | 112 const DbgVariableRecord &DVR = **DVRs.begin(); in remarkAlloca() local 113 DbgName = DVR.getVariable()->getName(); in remarkAlloca() 114 Loc = DVR.getDebugLoc(); in remarkAlloca() 115 Artificial = DVR.Variable->isArtificial(); in remarkAlloca()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | Local.h | 275 LLVM_ABI void InsertDebugValueAtStoreLoc(DbgVariableRecord *DVR, StoreInst *SI, 288 LLVM_ABI void ConvertDebugDeclareToDebugValue(DbgVariableRecord *DVR, 296 LLVM_ABI void ConvertDebugDeclareToDebugValue(DbgVariableRecord *DVR, 303 LLVM_ABI void ConvertDebugDeclareToDebugValue(DbgVariableRecord *DVR,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 1161 for (DbgVariableRecord &DVR : filterDbgVars(U->getDbgRecordRange())) in insertSpills() 1162 DVR.replaceVariableLocationOp(Def, CurrentReload, true); in insertSpills() 1223 for (auto *DVR : DbgVariableRecords) in insertSpills() local 1224 DVR->replaceVariableLocationOp(Alloca, G); in insertSpills() 1960 DbgVariableRecord &DVR, bool UseEntryValue) { in salvageDebugInfo() argument 1962 Function *F = DVR.getFunction(); in salvageDebugInfo() 1965 bool SkipOutermostLoad = DVR.isDbgDeclare(); in salvageDebugInfo() 1966 Value *OriginalStorage = DVR.getVariableLocationOp(0); in salvageDebugInfo() 1970 DVR.getExpression(), SkipOutermostLoad); in salvageDebugInfo() 1977 DVR.replaceVariableLocationOp(OriginalStorage, Storage); in salvageDebugInfo() [all …]
|
| H A D | CoroInternal.h | 47 DbgVariableRecord &DVR, bool UseEntryValue);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | ADCE.cpp | 552 if (DbgVariableRecord *DVR = dyn_cast<DbgVariableRecord>(&DR); in removeDeadInstructions() local 553 DVR && DVR->isDbgAssign()) in removeDeadInstructions() 554 if (!at::getAssignmentInsts(DVR).empty()) in removeDeadInstructions()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 1436 for (DbgVariableRecord *DVR : DbgVariableRecords) in freelyInvertAllUsersOf() 1437 InvertDbgValueUse(DVR); in freelyInvertAllUsersOf() 3650 for (auto *DVR : DVRs) in visitAllocSite() local 3651 if (DVR->isAddressOfVariable()) in visitAllocSite() 3652 ConvertDebugDeclareToDebugValue(DVR, SI, *DIB); in visitAllocSite() 3705 for (auto *DVR : DVRs) in visitAllocSite() local 3706 if (DVR->isAddressOfVariable() || DVR->getExpression()->startsWithDeref()) in visitAllocSite() 3707 DVR->eraseFromParent(); in visitAllocSite() 5344 for (auto &DVR : DbgVariableRecords) in tryToSinkInstructionDbgVariableRecords() local 5345 if (DVR->getParent() != DestBlock) in tryToSinkInstructionDbgVariableRecords() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FastISel.cpp | 1213 DbgVariableRecord &DVR = cast<DbgVariableRecord>(DR); in handleDbgInfo() local 1216 if (!DVR.hasArgList()) in handleDbgInfo() 1217 V = DVR.getVariableLocationOp(0); in handleDbgInfo() 1220 if (DVR.getType() == DbgVariableRecord::LocationType::Value || in handleDbgInfo() 1221 DVR.getType() == DbgVariableRecord::LocationType::Assign) { in handleDbgInfo() 1222 Res = lowerDbgValue(V, DVR.getExpression(), DVR.getVariable(), in handleDbgInfo() 1223 DVR.getDebugLoc()); in handleDbgInfo() 1225 assert(DVR.getType() == DbgVariableRecord::LocationType::Declare); in handleDbgInfo() 1226 if (FuncInfo.PreprocessedDVRDeclares.contains(&DVR)) in handleDbgInfo() 1228 Res = lowerDbgDeclare(V, DVR.getExpression(), DVR.getVariable(), in handleDbgInfo() [all …]
|