Lines Matching full:arglist
1627 bool LLParser::ParseParameterList(SmallVectorImpl<ParamInfo> &ArgList,
1635 if (!ArgList.empty() &&
1650 ArgList.push_back(ParamInfo(ArgLoc, V, AttributeSet::get(V->getContext(),
1670 bool LLParser::ParseArgumentList(SmallVectorImpl<ArgInfo> &ArgList,
1702 ArgList.push_back(ArgInfo(TypeLoc, ArgTy,
1730 ArgList.push_back(ArgInfo(TypeLoc, ArgTy,
1748 SmallVector<ArgInfo, 8> ArgList;
1750 if (ParseArgumentList(ArgList, isVarArg))
1754 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
1755 if (!ArgList[i].Name.empty())
1756 return Error(ArgList[i].Loc, "argument name invalid in function type");
1757 if (ArgList[i].Attrs.hasAttributes(i + 1))
1758 return Error(ArgList[i].Loc,
1763 for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
1764 ArgListTy.push_back(ArgList[i].Ty);
2879 /// OptUnnamedAddr Type GlobalName '(' ArgList ')' OptFuncAttrs OptSection
2949 SmallVector<ArgInfo, 8> ArgList;
2960 if (ParseArgumentList(ArgList, isVarArg) ||
2991 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
2992 ParamTypeList.push_back(ArgList[i].Ty);
2993 if (ArgList[i].Attrs.hasAttributes(i + 1)) {
2994 AttrBuilder B(ArgList[i].Attrs, i + 1);
3071 for (unsigned i = 0, e = ArgList.size(); i != e; ++i, ++ArgIt) {
3073 if (ArgList[i].Name.empty()) continue;
3076 ArgIt->setName(ArgList[i].Name);
3078 if (ArgIt->getName() != ArgList[i].Name)
3079 return Error(ArgList[i].Loc, "redefinition of argument '%" +
3080 ArgList[i].Name + "'");
3493 SmallVector<ParamInfo, 16> ArgList;
3500 ParseParameterList(ArgList, PFS) ||
3518 for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
3519 ParamTypes.push_back(ArgList[i].V->getType());
3545 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
3550 return Error(ArgList[i].Loc, "too many arguments specified");
3553 if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
3554 return Error(ArgList[i].Loc, "argument is not of expected type '" +
3556 Args.push_back(ArgList[i].V);
3557 if (ArgList[i].Attrs.hasAttributes(i + 1)) {
3558 AttrBuilder B(ArgList[i].Attrs, i + 1);
3902 SmallVector<ParamInfo, 16> ArgList;
3910 ParseParameterList(ArgList, PFS) ||
3924 for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
3925 ParamTypes.push_back(ArgList[i].V->getType());
3951 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
3956 return Error(ArgList[i].Loc, "too many arguments specified");
3959 if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
3960 return Error(ArgList[i].Loc, "argument is not of expected type '" +
3962 Args.push_back(ArgList[i].V);
3963 if (ArgList[i].Attrs.hasAttributes(i + 1)) {
3964 AttrBuilder B(ArgList[i].Attrs, i + 1);