Lines Matching defs:DbgVal

6706 static void updateDVIWithLocation(T &DbgVal, Value *Location,
6710 DbgVal.setRawLocation(ValueAsMetadata::get(Location));
6711 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops));
6712 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops));
6717 static void updateDVIWithLocations(T &DbgVal,
6727 DbgVal.setRawLocation(llvm::DIArgList::get(DbgVal.getContext(), ValArrayRef));
6728 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops));
6739 auto UpdateDbgValueInstImpl = [&](auto *DbgVal) {
6743 updateDVIWithLocation(*DbgVal, NewLocationOps[0], NewExpr);
6750 updateDVIWithLocation(*DbgVal, NewLocationOps[0], ShortenedOps);
6753 updateDVIWithLocations(*DbgVal, NewLocationOps, NewExpr);
6759 DIExpression *SalvageExpr = DbgVal->getExpression();
6763 DbgVal->setExpression(SalvageExpr);
6783 auto RestorePreTransformStateImpl = [&](auto *DbgVal) {
6785 << "scev-salvage: post-LSR: " << *DbgVal << '\n');
6787 DbgVal->setExpression(DVIRec.Expr);
6798 getValueOrPoison(DVIRec.LocationOps[0], DbgVal->getContext());
6799 DbgVal->setRawLocation(ValueAsMetadata::get(CachedValue));
6803 Value *CachedValue = getValueOrPoison(VH, DbgVal->getContext());
6807 DbgVal->setRawLocation(
6808 llvm::DIArgList::get(DbgVal->getContext(), ValArrayRef));
6810 LLVM_DEBUG(dbgs() << "scev-salvage: pre-LSR: " << *DbgVal << '\n');
6975 auto ProcessDbgValue = [&](auto *DbgVal) -> bool {
6978 if (DbgVal->isKillLocation())
6999 if (!HasTranslatableLocationOps(DbgVal))
7003 std::make_unique<DVIRecoveryRec>(DbgVal);
7007 NewRec->RecoveryExprs.resize(DbgVal->getNumVariableLocationOps());
7008 for (const auto LocOp : DbgVal->location_ops()) {
7011 NewRec->HadLocationArgList = DbgVal->hasArgList();