Lines Matching refs:DbgVal
6407 static void updateDVIWithLocation(T &DbgVal, Value *Location, in updateDVIWithLocation() argument
6411 DbgVal.setRawLocation(ValueAsMetadata::get(Location)); in updateDVIWithLocation()
6412 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops)); in updateDVIWithLocation()
6413 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops)); in updateDVIWithLocation()
6418 static void updateDVIWithLocations(T &DbgVal, in updateDVIWithLocations() argument
6428 DbgVal.setRawLocation(llvm::DIArgList::get(DbgVal.getContext(), ValArrayRef)); in updateDVIWithLocations()
6429 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops)); in updateDVIWithLocations()
6440 auto UpdateDbgValueInstImpl = [&](auto *DbgVal) { in UpdateDbgValueInst() argument
6444 updateDVIWithLocation(*DbgVal, NewLocationOps[0], NewExpr); in UpdateDbgValueInst()
6451 updateDVIWithLocation(*DbgVal, NewLocationOps[0], ShortenedOps); in UpdateDbgValueInst()
6454 updateDVIWithLocations(*DbgVal, NewLocationOps, NewExpr); in UpdateDbgValueInst()
6460 DIExpression *SalvageExpr = DbgVal->getExpression(); in UpdateDbgValueInst()
6464 DbgVal->setExpression(SalvageExpr); in UpdateDbgValueInst()
6484 auto RestorePreTransformStateImpl = [&](auto *DbgVal) { in restorePreTransformState() argument
6486 << "scev-salvage: post-LSR: " << *DbgVal << '\n'); in restorePreTransformState()
6488 DbgVal->setExpression(DVIRec.Expr); in restorePreTransformState()
6499 getValueOrPoison(DVIRec.LocationOps[0], DbgVal->getContext()); in restorePreTransformState()
6500 DbgVal->setRawLocation(ValueAsMetadata::get(CachedValue)); in restorePreTransformState()
6504 Value *CachedValue = getValueOrPoison(VH, DbgVal->getContext()); in restorePreTransformState()
6508 DbgVal->setRawLocation( in restorePreTransformState()
6509 llvm::DIArgList::get(DbgVal->getContext(), ValArrayRef)); in restorePreTransformState()
6511 LLVM_DEBUG(dbgs() << "scev-salvage: pre-LSR: " << *DbgVal << '\n'); in restorePreTransformState()
6674 auto ProcessDbgValue = [&](auto *DbgVal) -> bool { in DbgGatherSalvagableDVI() argument
6677 if (DbgVal->isKillLocation()) in DbgGatherSalvagableDVI()
6698 if (!HasTranslatableLocationOps(DbgVal)) in DbgGatherSalvagableDVI()
6702 std::make_unique<DVIRecoveryRec>(DbgVal); in DbgGatherSalvagableDVI()
6706 NewRec->RecoveryExprs.resize(DbgVal->getNumVariableLocationOps()); in DbgGatherSalvagableDVI()
6707 for (const auto LocOp : DbgVal->location_ops()) { in DbgGatherSalvagableDVI()
6710 NewRec->HadLocationArgList = DbgVal->hasArgList(); in DbgGatherSalvagableDVI()