Lines Matching refs:Def
102 // Only one of Def or Use will be set.
103 Value *Def = nullptr;
148 bool isADef = A.Def;
149 bool isBDef = B.Def;
159 if (!VD.Def && VD.U) {
192 bool isADef = A.Def;
193 bool isBDef = B.Def;
194 assert((!A.Def || !A.U) && (!B.Def || !B.U) &&
195 "Def and U cannot be set at the same time");
202 if (VD.Def)
203 return VD.Def;
220 // Return either the Def, if it's not null, or the user of the Use, if the def
222 const Instruction *getDefOrUser(const Value *Def, const Use *U) const {
223 if (Def)
224 return cast<Instruction>(Def);
590 if (RevIter->Def)
600 RenameIter == RenameStack.begin() ? OrigOp : (RenameIter - 1)->Def;
605 : (RenameStack.end() - Start - 1)->Def;
619 Result.Def = PIC;
632 Result.Def = PIC;
635 return RenameStack.back().Def;
740 bool ShouldPush = (VD.Def || PossibleCopy);
754 if (VD.Def || PossibleCopy)
765 if (!Result.Def)
766 Result.Def = materializeStack(Counter, RenameStack, Op);
768 LLVM_DEBUG(dbgs() << "Found replacement " << *Result.Def << " for "
771 assert(DT.dominates(cast<Instruction>(Result.Def), *VD.U) &&
773 VD.U->set(Result.Def);