Lines Matching refs:Arg
86 Type *getStoredType(Value &Arg) const;
87 Type *getOutArgumentType(Argument &Arg) const;
113 Type *AMDGPURewriteOutArguments::getStoredType(Value &Arg) const { in getStoredType()
118 for (Use &U : Arg.uses()) in getStoredType()
152 Type *AMDGPURewriteOutArguments::getOutArgumentType(Argument &Arg) const { in getOutArgumentType()
154 PointerType *ArgTy = dyn_cast<PointerType>(Arg.getType()); in getOutArgumentType()
159 Arg.hasByValAttr() || Arg.hasStructRetAttr()) { in getOutArgumentType()
163 Type *StoredType = getStoredType(Arg); in getOutArgumentType()
200 for (Argument &Arg : F.args()) { in runOnFunction()
201 if (Type *Ty = getOutArgumentType(Arg)) { in runOnFunction()
202 LLVM_DEBUG(dbgs() << "Found possible out argument " << Arg in runOnFunction()
204 OutArgs.push_back({&Arg, Ty}); in runOnFunction()
363 for (Argument &Arg : F.args()) { in runOnFunction()
364 if (OutArgIndexes.count(Arg.getArgNo())) { in runOnFunction()
367 StubCallArgs.push_back(PoisonValue::get(Arg.getType())); in runOnFunction()
369 StubCallArgs.push_back(&Arg); in runOnFunction()
378 for (Argument &Arg : F.args()) { in runOnFunction()
379 if (!OutArgIndexes.count(Arg.getArgNo())) in runOnFunction()
382 Type *EltTy = OutArgIndexes[Arg.getArgNo()]; in runOnFunction()
384 DL->getValueOrABITypeAlignment(Arg.getParamAlign(), EltTy); in runOnFunction()
387 B.CreateAlignedStore(Val, &Arg, Align); in runOnFunction()