Lines Matching refs:Arg
59 void NVPTXLowerStructArgs::handleParam(Argument *Arg) { in handleParam() argument
60 Function *Func = Arg->getParent(); in handleParam()
62 PointerType *PType = dyn_cast<PointerType>(Arg->getType()); in handleParam()
67 AllocaInst *AllocA = new AllocaInst(StructType, Arg->getName(), FirstInst); in handleParam()
73 AllocA->setAlignment(Func->getParamAlignment(Arg->getArgNo() + 1)); in handleParam()
75 Arg->replaceAllUsesWith(AllocA); in handleParam()
86 new BitCastInst(Arg, Type::getInt8PtrTy(Func->getParent()->getContext(), in handleParam()
88 Arg->getName(), FirstInst)}; in handleParam()
94 Arg->getName(), FirstInst); in handleParam()
95 LoadInst *LI = new LoadInst(BitCast, Arg->getName(), FirstInst); in handleParam()
115 for (Argument &Arg : F.args()) { in handleStructPtrArgs()
116 if (Arg.getType()->isPointerTy() && Arg.hasByValAttr()) { in handleStructPtrArgs()
117 handleParam(&Arg); in handleStructPtrArgs()