Lines Matching refs:Arg
78 bool isSafeToPromoteArgument(Argument *Arg, bool isByVal) const;
217 static bool AllCallersPassInValidPointerForArgument(Argument *Arg) {
218 Function *Callee = Arg->getParent();
220 unsigned ArgNo = Arg->getArgNo();
304 bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg, bool isByVal) const {
308 if (Arg->use_empty())
333 if (isByVal || AllCallersPassInValidPointerForArgument(Arg))
338 BasicBlock *EntryBlock = Arg->getParent()->begin();
347 if (V == Arg) {
348 // This load actually loads (part of) Arg? Check the indices then.
363 } else if (V == Arg) {
373 for (Value::use_iterator UI = Arg->use_begin(), E = Arg->use_end();
392 return isSafeToPromoteArgument(Arg, isByVal);
429 << Arg->getName() << "' because it would require adding more "
605 DEBUG(dbgs() << "ARG PROMOTION: Promoting to:" << *NF << "\n"
804 // Anything that used the arg should now use the alloca.