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()
361 for (Argument &Arg : F.args()) { in runOnFunction()
362 if (OutArgIndexes.count(Arg.getArgNo())) { in runOnFunction()
365 StubCallArgs.push_back(UndefValue::get(Arg.getType())); in runOnFunction()
367 StubCallArgs.push_back(&Arg); in runOnFunction()
376 for (Argument &Arg : F.args()) { in runOnFunction()
377 if (!OutArgIndexes.count(Arg.getArgNo())) in runOnFunction()
380 PointerType *ArgType = cast<PointerType>(Arg.getType()); in runOnFunction()
382 Type *EltTy = OutArgIndexes[Arg.getArgNo()]; in runOnFunction()
384 DL->getValueOrABITypeAlignment(Arg.getParamAlign(), EltTy); in runOnFunction()
390 Value *PtrVal = B.CreateBitCast(&Arg, PtrTy); in runOnFunction()