Home | History | Annotate | Download | only in AsmParser

Lines Matching full:arglist

1914 bool LLParser::ParseParameterList(SmallVectorImpl<ParamInfo> &ArgList,
1923 if (!ArgList.empty() &&
1954 ArgList.push_back(ParamInfo(ArgLoc, V, AttributeSet::get(V->getContext(),
2030 bool LLParser::ParseArgumentList(SmallVectorImpl<ArgInfo> &ArgList,
2062 ArgList.emplace_back(TypeLoc, ArgTy, AttributeSet::get(ArgTy->getContext(),
2090 ArgList.emplace_back(
2108 SmallVector<ArgInfo, 8> ArgList;
2110 if (ParseArgumentList(ArgList, isVarArg))
2114 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
2115 if (!ArgList[i].Name.empty())
2116 return Error(ArgList[i].Loc, "argument name invalid in function type");
2117 if (ArgList[i].Attrs.hasAttributes(i + 1))
2118 return Error(ArgList[i].Loc,
2123 for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
2124 ArgListTy.push_back(ArgList[i].Ty);
4324 /// OptUnnamedAddr Type GlobalName '(' ArgList ')' OptFuncAttrs OptSection
4395 SmallVector<ArgInfo, 8> ArgList;
4410 if (ParseArgumentList(ArgList, isVarArg) ||
4448 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
4449 ParamTypeList.push_back(ArgList[i].Ty);
4450 if (ArgList[i].Attrs.hasAttributes(i + 1)) {
4451 AttrBuilder B(ArgList[i].Attrs, i + 1);
4531 for (unsigned i = 0, e = ArgList.size(); i != e; ++i, ++ArgIt) {
4533 if (ArgList[i].Name.empty()) continue;
4536 ArgIt->setName(ArgList[i].Name);
4538 if (ArgIt->getName() != ArgList[i].Name)
4539 return Error(ArgList[i].Loc, "redefinition of argument '%" +
4540 ArgList[i].Name + "'");
5033 SmallVector<ParamInfo, 16> ArgList;
5039 ParseValID(CalleeID) || ParseParameterList(ArgList, PFS) ||
5056 for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
5057 ParamTypes.push_back(ArgList[i].V->getType());
5085 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
5090 return Error(ArgList[i].Loc, "too many arguments specified");
5093 if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
5094 return Error(ArgList[i].Loc, "argument is not of expected type '" +
5096 Args.push_back(ArgList[i].V);
5097 if (ArgList[i].Attrs.hasAttributes(i + 1)) {
5098 AttrBuilder B(ArgList[i].Attrs, i + 1);
5629 SmallVector<ParamInfo, 16> ArgList;
5643 ParseParameterList(ArgList, PFS, TCK == CallInst::TCK_MustTail,
5660 for (unsigned i = 0, e = ArgList.size(); i != e; ++i)
5661 ParamTypes.push_back(ArgList[i].V->getType());
5689 for (unsigned i = 0, e = ArgList.size(); i != e; ++i) {
5694 return Error(ArgList[i].Loc, "too many arguments specified");
5697 if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
5698 return Error(ArgList[i].Loc, "argument is not of expected type '" +
5700 Args.push_back(ArgList[i].V);
5701 if (ArgList[i].Attrs.hasAttributes(i + 1)) {
5702 AttrBuilder B(ArgList[i].Attrs, i + 1);