Home
last modified time | relevance | path

Searched refs:DVI (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineDebugify.cpp72 auto *DVI = dyn_cast<DbgValueInst>(U.getUser()); in applyDebugifyMetadataToMachineFunction() local
73 if (!DVI || DVI->getFunction() != &F) in applyDebugifyMetadataToMachineFunction()
75 unsigned Line = DVI->getDebugLoc().getLine(); in applyDebugifyMetadataToMachineFunction()
77 Line2Var[Line] = DVI->getVariable(); in applyDebugifyMetadataToMachineFunction()
79 EarliestDVI = DVI; in applyDebugifyMetadataToMachineFunction()
80 Expr = DVI->getExpression(); in applyDebugifyMetadataToMachineFunction()
H A DCodeGenPrepare.cpp2934 for (auto *DVI : DbgValues) in undo() local
2935 DVI->replaceVariableLocationOp(New, Inst); in undo()
8111 DbgValueInst &DVI = *cast<DbgValueInst>(I); in fixupDbgValue() local
8145 if (!DVI) in placeDbgValues()
8149 for (Value *V : DVI->getValues()) in placeDbgValues()
8168 if (DT.dominates(VI, DVI)) in placeDbgValues()
8178 << *DVI); in placeDbgValues()
8179 DVI->setUndef(); in placeDbgValues()
8184 << *DVI << ' ' << *VI); in placeDbgValues()
8185 DVI->removeFromParent(); in placeDbgValues()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DDebugify.cpp341 if (DVI->isUndef()) in collectDebugInfoMetadata()
344 auto *Var = DVI->getVariable(); in collectDebugInfoMetadata()
580 if (DVI->isUndef()) in checkDebugInfoMetadata()
583 auto *Var = DVI->getVariable(); in checkDebugInfoMetadata()
664 if (DVI->getExpression()->getNumElements()) in diagnoseMisSizedDbgValue()
667 Value *V = DVI->getVariableLocationOp(0); in diagnoseMisSizedDbgValue()
679 auto Signedness = DVI->getVariable()->getSignedness(); in diagnoseMisSizedDbgValue()
689 DVI->print(dbg()); in diagnoseMisSizedDbgValue()
748 auto *DVI = dyn_cast<DbgValueInst>(&I); in checkDebugifyMetadata() local
749 if (!DVI) in checkDebugifyMetadata()
[all …]
H A DMemoryTaggingSupport.cpp138 if (auto *DVI = dyn_cast<DbgVariableIntrinsic>(&Inst)) { in visit() local
139 for (Value *V : DVI->location_ops()) { in visit()
145 if (DVIVec.empty() || DVIVec.back() != DVI) in visit()
146 DVIVec.push_back(DVI); in visit()
H A DBasicBlockUtils.cpp370 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(&I)) { in removeRedundantDbgInstrsUsingBackwardScan() local
371 DebugVariable Key(DVI->getVariable(), in removeRedundantDbgInstrsUsingBackwardScan()
372 DVI->getExpression(), in removeRedundantDbgInstrsUsingBackwardScan()
373 DVI->getDebugLoc()->getInlinedAt()); in removeRedundantDbgInstrsUsingBackwardScan()
379 ToBeRemoved.push_back(DVI); in removeRedundantDbgInstrsUsingBackwardScan()
418 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(&I)) { in removeRedundantDbgInstrsUsingForwardScan() local
419 DebugVariable Key(DVI->getVariable(), in removeRedundantDbgInstrsUsingForwardScan()
425 SmallVector<Value *, 4> Values(DVI->getValues()); in removeRedundantDbgInstrsUsingForwardScan()
427 VMI->second.second != DVI->getExpression()) { in removeRedundantDbgInstrsUsingForwardScan()
428 VariableMap[Key] = {Values, DVI->getExpression()}; in removeRedundantDbgInstrsUsingForwardScan()
[all …]
H A DLCSSA.cpp238 for (auto DVI : DbgValues) { in formLCSSAForInstructions() local
239 BasicBlock *UserBB = DVI->getParent(); in formLCSSAForInstructions()
248 DVI->replaceVariableLocationOp(I, V); in formLCSSAForInstructions()
H A DLoopUtils.cpp620 auto *DVI = dyn_cast<DbgVariableIntrinsic>(&I); in deleteDeadLoop() local
621 if (!DVI) in deleteDeadLoop()
624 DeadDebugSet.find({DVI->getVariable(), DVI->getExpression()}); in deleteDeadLoop()
627 DeadDebugSet.insert({DVI->getVariable(), DVI->getExpression()}); in deleteDeadLoop()
628 DeadDebugInst.push_back(DVI); in deleteDeadLoop()
641 for (auto *DVI : DeadDebugInst) in deleteDeadLoop() local
643 DVI->getVariable(), DVI->getExpression(), in deleteDeadLoop()
644 DVI->getDebugLoc(), InsertDbgValueBefore); in deleteDeadLoop()
H A DLocal.cpp431 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) { in wouldInstructionBeTriviallyDead() local
432 if (DVI->hasArgList() || DVI->getValue(0)) in wouldInstructionBeTriviallyDead()
1395 for (auto *DVI : DbgValues) { in PhiHasDebugValue() local
1396 assert(is_contained(DVI->getValues(), APN)); in PhiHasDebugValue()
1397 if ((DVI->getVariable() == DIVar) && (DVI->getExpression() == DIExpr)) in PhiHasDebugValue()
1708 const DebugLoc &Loc = DVI->getDebugLoc(); in replaceOneDbgValueForAlloca()
1709 auto *DIVar = DVI->getVariable(); in replaceOneDbgValueForAlloca()
1710 auto *DIExpr = DVI->getExpression(); in replaceOneDbgValueForAlloca()
1725 Builder.insertDbgValueIntrinsic(NewAddress, DIVar, DIExpr, Loc, DVI); in replaceOneDbgValueForAlloca()
1726 DVI->eraseFromParent(); in replaceOneDbgValueForAlloca()
[all …]
H A DMemoryOpRemark.cpp321 for (const DbgVariableIntrinsic *DVI : in visitVariable() local
323 if (DILocalVariable *DILV = DVI->getVariable()) { in visitVariable()
H A DCodeExtractor.cpp1513 for (DbgVariableIntrinsic *DVI : DbgUsers) in eraseDebugIntrinsicsWithNonLocalRefs()
1514 if (DVI->getFunction() != &F) in eraseDebugIntrinsicsWithNonLocalRefs()
1515 DVI->eraseFromParent(); in eraseDebugIntrinsicsWithNonLocalRefs()
1584 auto *DVI = cast<DbgVariableIntrinsic>(DII); in fixupDebugInfoPostExtraction() local
1586 if (any_of(DVI->location_ops(), IsInvalidLocation)) { in fixupDebugInfoPostExtraction()
1587 DebugIntrinsicsToDelete.push_back(DVI); in fixupDebugInfoPostExtraction()
1592 DILocalVariable *OldVar = DVI->getVariable(); in fixupDebugInfoPostExtraction()
1599 DVI->setVariable(cast<DILocalVariable>(NewVar)); in fixupDebugInfoPostExtraction()
/llvm-project-15.0.7/llvm/lib/IR/
H A DUser.cpp36 if (auto DVI = dyn_cast_or_null<DbgVariableIntrinsic>(this)) { in replaceUsesOfWith() local
37 if (is_contained(DVI->location_ops(), From)) { in replaceUsesOfWith()
38 DVI->replaceVariableLocationOp(From, To); in replaceUsesOfWith()
H A DDebugInfo.cpp69 for (DbgVariableIntrinsic *DVI : FindDbgAddrUses(V)) in FindDbgDeclareUses()
70 if (auto *DDI = dyn_cast<DbgDeclareInst>(DVI)) in FindDbgDeclareUses()
87 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(U)) in findDbgValues() local
88 DbgValues.push_back(DVI); in findDbgValues()
93 if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(U)) in findDbgValues() local
94 if (EncounteredDbgValues.insert(DVI).second) in findDbgValues()
95 DbgValues.push_back(DVI); in findDbgValues()
193 if (auto *DVI = dyn_cast<DbgVariableIntrinsic>(&I)) in processInstruction() local
194 processVariable(M, *DVI); in processInstruction()
281 const DbgVariableIntrinsic &DVI) { in processVariable() argument
[all …]
H A DValue.cpp573 for (auto *DVI : DbgUsers) { in replaceDbgUsesOutsideBlock() local
574 if (DVI->getParent() != BB) in replaceDbgUsesOutsideBlock()
575 DVI->replaceVariableLocationOp(V, New); in replaceDbgUsesOutsideBlock()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1777 for (auto *DVI : DIs) in insertSpills() local
1778 DVI->replaceUsesOfWith(Alloca, G); in insertSpills()
2559 Function *F = DVI->getFunction(); in salvageDebugInfo()
2565 DIExpression *Expr = DVI->getExpression(); in salvageDebugInfo()
2568 bool SkipOutermostLoad = !isa<DbgValueInst>(DVI); in salvageDebugInfo()
2569 Value *Storage = DVI->getVariableLocationOp(0); in salvageDebugInfo()
2631 DVI->setExpression(Expr); in salvageDebugInfo()
2635 if (!isa<DbgValueInst>(DVI) && !isa<DbgAddrIntrinsic>(DVI)) { in salvageDebugInfo()
2643 DVI->moveAfter(InsertPt); in salvageDebugInfo()
2800 for (DbgValueInst *DVI : DVIs) in buildCoroutineFrame()
[all …]
H A DCoroSplit.cpp684 if (auto *DVI = dyn_cast<DbgVariableIntrinsic>(&I)) in salvageDebugInfo() local
685 Worklist.push_back(DVI); in salvageDebugInfo()
686 for (DbgVariableIntrinsic *DVI : Worklist) in salvageDebugInfo()
687 coro::salvageDebugInfo(DbgPtrAllocaCache, DVI, Shape.OptimizeFrame); in salvageDebugInfo()
696 for (DbgVariableIntrinsic *DVI : Worklist) { in salvageDebugInfo()
697 if (IsUnreachableBlock(DVI->getParent())) in salvageDebugInfo()
698 DVI->eraseFromParent(); in salvageDebugInfo()
699 else if (isa_and_nonnull<AllocaInst>(DVI->getVariableLocationOp(0))) { in salvageDebugInfo()
702 for (auto *User : DVI->getVariableLocationOp(0)->users()) in salvageDebugInfo()
707 DVI->eraseFromParent(); in salvageDebugInfo()
H A DCoroInternal.h32 DbgVariableIntrinsic *DVI, bool OptimizeFrame);
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp268 if (const auto *DVI = dyn_cast<DbgVariableIntrinsic>(U)) { in considerHoistingFromTo() local
269 return all_of(DVI->location_ops(), [&NotHoisted](Value *V) { in considerHoistingFromTo()
H A DLoopStrengthReduce.cpp6216 DbgValueInst *DVI; member
6254 DVI.setExpression(DIExpression::get(DVI.getContext(), Ops)); in updateDVIWithLocation()
6268 DVI.setRawLocation(llvm::DIArgList::get(DVI.getContext(), ValArrayRef)); in updateDVIWithLocations()
6269 DVI.setExpression(DIExpression::get(DVI.getContext(), Ops)); in updateDVIWithLocations()
6302 DVIRec.DVI->setExpression(SalvageExpr); in UpdateDbgValueInst()
6320 DVIRec.DVI->setExpression(DVIRec.Expr); in restorePreTransformState()
6340 DVIRec.DVI->setRawLocation( in restorePreTransformState()
6350 if (!DVIRec.DVI->isUndef()) in SalvageDVI()
6496 if (!DVI) in DbgGatherSalvagableDVI()
6500 if (DVI->isUndef()) in DbgGatherSalvagableDVI()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-dis/
H A Dllvm-dis.cpp125 else if (const DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) { in printInfoComment() local
130 OS << " [debug variable = " << DVI->getVariable()->getName() << "]"; in printInfoComment()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DDebugifyTest.cpp61 if (auto *DVI = dyn_cast<DbgVariableIntrinsic>(&I)) in runOnFunction() local
62 Dbgs.push_back(DVI); in runOnFunction()
H A DLocalTest.cpp809 return any_of(ADbgVals, [&](DbgValueInst *DVI) { in TEST() argument
810 assert(DVI->getVariable()->getName() == "2"); in TEST()
811 return DVI->getExpression()->getElements() == Ops; in TEST()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDebugInfo.h98 void processVariable(const Module &M, const DbgVariableIntrinsic &DVI);
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp601 for (auto DVI : Info.DbgVariableIntrinsics) in runOnFunction() local
602 DVI->replaceVariableLocationOp(OldAI, Info.AI); in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2889 for (auto *DVI : DVIs) in visitAllocSite() local
2890 if (DVI->isAddressOfVariable()) in visitAllocSite()
2891 ConvertDebugDeclareToDebugValue(DVI, SI, *DIB); in visitAllocSite()
2930 for (auto *DVI : DVIs) in visitAllocSite() local
2931 if (DVI->isAddressOfVariable() || DVI->getExpression()->startsWithDeref()) in visitAllocSite()
2932 DVI->eraseFromParent(); in visitAllocSite()
4098 for (DbgVariableIntrinsic *DVI : DbgUsers) in TryToSinkInstruction()
4099 if (DVI->getParent() == SrcBlock) in TryToSinkInstruction()
4100 DbgUsersToSink.push_back(DVI); in TryToSinkInstruction()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp562 if (auto *DVI = dyn_cast<DbgValueInst>(&*BI)) { in filterInstsUnrelatedToPDI() local
566 DILocalVariable *DILocVar = DVI->getVariable(); in filterInstsUnrelatedToPDI()

12