Lines Matching refs:Arg
170 Argument(const Record &Arg, StringRef Attr)
171 : lowerName(Arg.getValueAsString("Name")), upperName(lowerName),
219 SimpleArgument(const Record &Arg, StringRef Attr, std::string T)
220 : Argument(Arg, Attr), type(T)
296 DefaultSimpleArgument(const Record &Arg, StringRef Attr,
298 : SimpleArgument(Arg, Attr, T), Default(Default) {}
310 StringArgument(const Record &Arg, StringRef Attr)
311 : Argument(Arg, Attr)
377 AlignedArgument(const Record &Arg, StringRef Attr)
378 : Argument(Arg, Attr)
512 VariadicArgument(const Record &Arg, StringRef Attr, std::string T)
513 : Argument(Arg, Attr), Type(T), ArgName(getLowerName().str() + "_"),
619 EnumArgument(const Record &Arg, StringRef Attr)
620 : Argument(Arg, Attr), type(Arg.getValueAsString("Type")),
621 values(Arg.getValueAsListOfStrings("Values")),
622 enums(Arg.getValueAsListOfStrings("Enums")),
711 VariadicEnumArgument(const Record &Arg, StringRef Attr)
712 : VariadicArgument(Arg, Attr, Arg.getValueAsString("Type")),
713 type(Arg.getValueAsString("Type")),
714 values(Arg.getValueAsListOfStrings("Values")),
715 enums(Arg.getValueAsListOfStrings("Enums")),
791 VersionArgument(const Record &Arg, StringRef Attr)
792 : Argument(Arg, Attr)
842 ExprArgument(const Record &Arg, StringRef Attr)
843 : SimpleArgument(Arg, Attr, "Expr *")
879 VariadicExprArgument(const Record &Arg, StringRef Attr)
880 : VariadicArgument(Arg, Attr, "Expr *")
941 TypeArgument(const Record &Arg, StringRef Attr)
942 : SimpleArgument(Arg, Attr, "TypeSourceInfo *")
964 createArgument(const Record &Arg, StringRef Attr,
967 Search = &Arg;
972 if (ArgName == "AlignedArgument") Ptr = new AlignedArgument(Arg, Attr);
973 else if (ArgName == "EnumArgument") Ptr = new EnumArgument(Arg, Attr);
974 else if (ArgName == "ExprArgument") Ptr = new ExprArgument(Arg, Attr);
976 Ptr = new SimpleArgument(Arg, Attr, "FunctionDecl *");
978 Ptr = new SimpleArgument(Arg, Attr, "IdentifierInfo *");
980 Ptr = new DefaultSimpleArgument(Arg, Attr, "bool",
981 Arg.getValueAsBit("Default"));
982 else if (ArgName == "BoolArgument") Ptr = new SimpleArgument(Arg, Attr,
985 Ptr = new DefaultSimpleArgument(Arg, Attr, "int",
986 Arg.getValueAsInt("Default"));
987 else if (ArgName == "IntArgument") Ptr = new SimpleArgument(Arg, Attr, "int");
988 else if (ArgName == "StringArgument") Ptr = new StringArgument(Arg, Attr);
989 else if (ArgName == "TypeArgument") Ptr = new TypeArgument(Arg, Attr);
991 Ptr = new SimpleArgument(Arg, Attr, "unsigned");
993 Ptr = new VariadicArgument(Arg, Attr, "unsigned");
995 Ptr = new VariadicEnumArgument(Arg, Attr);
997 Ptr = new VariadicExprArgument(Arg, Attr);
999 Ptr = new VersionArgument(Arg, Attr);
1005 Ptr = createArgument(Arg, Attr, Base).release();
1011 if (Ptr && Arg.getValueAsBit("Optional"))
1326 static bool isIdentifierArgument(Record *Arg) {
1327 return !Arg->getSuperClasses().empty() &&
1328 llvm::StringSwitch<bool>(Arg->getSuperClasses().back()->getName())
1566 for (const auto *Arg : ArgRecords)
1567 Args.emplace_back(createArgument(*Arg, R.getName()));
1687 for (const auto *Arg : ArgRecords) {
1688 Args.emplace_back(createArgument(*Arg, R.getName()));
1731 for (const auto *Arg : Args)
1732 createArgument(*Arg, R.getName())->writePCHWrite(OS);
1927 for (const auto *Arg : ArgRecords)
1928 createArgument(*Arg, R.getName())->writeASTVisitorTraversal(OS);
2042 for (const auto *Arg : Args) {
2043 Arg->getValueAsBit("Optional") ? ++OptCount : ++ArgCount;
2601 for (const auto *Arg : Args)
2602 createArgument(*Arg, R.getName())->writeDump(OS);