Lines Matching refs:ArgNo
113 ValTy *getArgument(unsigned ArgNo) const {
114 assert(arg_begin() + ArgNo < arg_end() && "Argument # out of range!");
115 return *(arg_begin() + ArgNo);
118 void setArgument(unsigned ArgNo, Value* newVal) {
120 assert(arg_begin() + ArgNo < arg_end() && "Argument # out of range!");
121 getInstruction()->setOperand(ArgNo, newVal);
270 bool doesNotCapture(unsigned ArgNo) const {
271 return paramHasAttr(ArgNo + 1, Attribute::NoCapture);
275 bool isByValArgument(unsigned ArgNo) const {
276 return paramHasAttr(ArgNo + 1, Attribute::ByVal);
280 bool isInAllocaArgument(unsigned ArgNo) const {
281 return paramHasAttr(ArgNo + 1, Attribute::InAlloca);
285 bool isByValOrInAllocaArgument(unsigned ArgNo) const {
286 return paramHasAttr(ArgNo + 1, Attribute::ByVal) ||
287 paramHasAttr(ArgNo + 1, Attribute::InAlloca);
296 bool doesNotAccessMemory(unsigned ArgNo) const {
297 return paramHasAttr(ArgNo + 1, Attribute::ReadNone);
300 bool onlyReadsMemory(unsigned ArgNo) const {
301 return paramHasAttr(ArgNo + 1, Attribute::ReadOnly) ||
302 paramHasAttr(ArgNo + 1, Attribute::ReadNone);