Lines Matching defs:ArgNo
170 static void setParamElementType(CallInst *Call, unsigned ArgNo, Type *Type) {
172 Call->addParamAttr(ArgNo, Attribute::get(C, Attribute::ElementType, Type));
175 static void setParamReadNone(CallInst *Call, unsigned ArgNo) {
177 Call->addParamAttr(ArgNo, Attribute::get(C, Attribute::ReadNone));
180 static void setParamReadOnly(CallInst *Call, unsigned ArgNo) {
182 Call->addParamAttr(ArgNo, Attribute::get(C, Attribute::ReadOnly));
185 static void setParamWriteOnly(CallInst *Call, unsigned ArgNo) {
187 Call->addParamAttr(ArgNo, Attribute::get(C, Attribute::WriteOnly));
268 static unsigned getOperandAsUnsigned(CallInst *Call, unsigned ArgNo) {
269 if (auto *Int = dyn_cast<ConstantInt>(Call->getOperand(ArgNo)))
273 ReportS << "Expecting ConstantInt as argument #" << ArgNo << " of " << *Call