Lines Matching refs:Def
103 // Only one of Def or Use will be set.
104 Value *Def = nullptr;
153 bool isADef = A.Def;
154 bool isBDef = B.Def;
164 if (!VD.Def && VD.U) {
197 bool isADef = A.Def;
198 bool isBDef = B.Def;
199 assert((!A.Def || !A.U) && (!B.Def || !B.U) &&
200 "Def and U cannot be set at the same time");
207 if (VD.Def)
208 return VD.Def;
225 // Return either the Def, if it's not null, or the user of the Use, if the def
227 const Instruction *getDefOrUser(const Value *Def, const Use *U) const {
228 if (Def)
229 return cast<Instruction>(Def);
539 if (RevIter->Def)
549 RenameIter == RenameStack.begin() ? OrigOp : (RenameIter - 1)->Def;
565 Result.Def = PIC;
576 Result.Def = PIC;
579 return RenameStack.back().Def;
684 bool ShouldPush = (VD.Def || PossibleCopy);
698 if (VD.Def || PossibleCopy)
709 if (!Result.Def)
710 Result.Def = materializeStack(Counter, RenameStack, Op);
712 LLVM_DEBUG(dbgs() << "Found replacement " << *Result.Def << " for "
715 assert(DT.dominates(cast<Instruction>(Result.Def), *VD.U) &&
717 VD.U->set(Result.Def);