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