Lines Matching defs:ArgNo

116 static bool setDoesNotCapture(Function &F, unsigned ArgNo) {
117 if (F.hasParamAttribute(ArgNo, Attribute::NoCapture))
119 F.addParamAttr(ArgNo, Attribute::NoCapture);
124 static bool setDoesNotAlias(Function &F, unsigned ArgNo) {
125 if (F.hasParamAttribute(ArgNo, Attribute::NoAlias))
127 F.addParamAttr(ArgNo, Attribute::NoAlias);
132 static bool setOnlyReadsMemory(Function &F, unsigned ArgNo) {
133 if (F.hasParamAttribute(ArgNo, Attribute::ReadOnly))
135 F.addParamAttr(ArgNo, Attribute::ReadOnly);
140 static bool setOnlyWritesMemory(Function &F, unsigned ArgNo) {
141 if (F.hasParamAttribute(ArgNo, Attribute::WriteOnly))
143 F.addParamAttr(ArgNo, Attribute::WriteOnly);
160 for (unsigned ArgNo = 0; ArgNo < F.arg_size(); ++ArgNo) {
161 if (!F.hasParamAttribute(ArgNo, Attribute::NoUndef)) {
162 F.addParamAttr(ArgNo, Attribute::NoUndef);
170 static bool setArgNoUndef(Function &F, unsigned ArgNo) {
171 if (F.hasParamAttribute(ArgNo, Attribute::NoUndef))
173 F.addParamAttr(ArgNo, Attribute::NoUndef);
185 static bool setReturnedArg(Function &F, unsigned ArgNo) {
186 if (F.hasParamAttribute(ArgNo, Attribute::Returned))
188 F.addParamAttr(ArgNo, Attribute::Returned);
215 static bool setAlignedAllocParam(Function &F, unsigned ArgNo) {
216 if (F.hasParamAttribute(ArgNo, Attribute::AllocAlign))
218 F.addParamAttr(ArgNo, Attribute::AllocAlign);
222 static bool setAllocatedPointerParam(Function &F, unsigned ArgNo) {
223 if (F.hasParamAttribute(ArgNo, Attribute::AllocatedPointer))
225 F.addParamAttr(ArgNo, Attribute::AllocatedPointer);
1251 static void setArgExtAttr(Function &F, unsigned ArgNo,
1254 if (ExtAttr != Attribute::None && !F.hasParamAttribute(ArgNo, ExtAttr))
1255 F.addParamAttr(ArgNo, ExtAttr);