Lines Matching defs:DbgVal
6709 static void updateDVIWithLocation(T &DbgVal, Value *Location,
6713 DbgVal.setRawLocation(ValueAsMetadata::get(Location));
6714 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops));
6715 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops));
6720 static void updateDVIWithLocations(T &DbgVal,
6730 DbgVal.setRawLocation(llvm::DIArgList::get(DbgVal.getContext(), ValArrayRef));
6731 DbgVal.setExpression(DIExpression::get(DbgVal.getContext(), Ops));
6742 auto UpdateDbgValueInstImpl = [&](auto *DbgVal) {
6746 updateDVIWithLocation(*DbgVal, NewLocationOps[0], NewExpr);
6753 updateDVIWithLocation(*DbgVal, NewLocationOps[0], ShortenedOps);
6756 updateDVIWithLocations(*DbgVal, NewLocationOps, NewExpr);
6762 DIExpression *SalvageExpr = DbgVal->getExpression();
6766 DbgVal->setExpression(SalvageExpr);
6786 auto RestorePreTransformStateImpl = [&](auto *DbgVal) {
6788 << "scev-salvage: post-LSR: " << *DbgVal << '\n');
6790 DbgVal->setExpression(DVIRec.Expr);
6801 getValueOrPoison(DVIRec.LocationOps[0], DbgVal->getContext());
6802 DbgVal->setRawLocation(ValueAsMetadata::get(CachedValue));
6806 Value *CachedValue = getValueOrPoison(VH, DbgVal->getContext());
6810 DbgVal->setRawLocation(
6811 llvm::DIArgList::get(DbgVal->getContext(), ValArrayRef));
6813 LLVM_DEBUG(dbgs() << "scev-salvage: pre-LSR: " << *DbgVal << '\n');
6976 auto ProcessDbgValue = [&](auto *DbgVal) -> bool {
6979 if (DbgVal->isKillLocation())
7000 if (!HasTranslatableLocationOps(DbgVal))
7004 std::make_unique<DVIRecoveryRec>(DbgVal);
7008 NewRec->RecoveryExprs.resize(DbgVal->getNumVariableLocationOps());
7009 for (const auto LocOp : DbgVal->location_ops()) {
7012 NewRec->HadLocationArgList = DbgVal->hasArgList();