Home | History | Annotate | Download | only in TableGen

Lines Matching defs:Name

37   FlattenedSpelling(const std::string &Variety, const std::string &Name,
39 V(Variety), N(Name), NS(Namespace), K(KnownToGCC) {}
42 N(Spelling.getValueAsString("Name")) {
53 const std::string &name() const { return N; }
67 Ret.push_back(FlattenedSpelling("GNU", Spelling->getValueAsString("Name"),
70 "CXX11", Spelling->getValueAsString("Name"), "gnu", true));
89 static std::string WritePCHRecord(StringRef type, StringRef name) {
91 .EndsWith("Decl *", "AddDeclRef(" + std::string(name) +
94 "AddTypeSourceInfo(" + std::string(name) + ", Record);\n")
95 .Case("Expr *", "AddStmt(" + std::string(name) + ");\n")
97 "AddIdentifierRef(" + std::string(name) + ", Record);\n")
98 .Default("Record.push_back(" + std::string(name) + ");\n");
101 // Normalize attribute name by removing leading and trailing
114 // Normalize the name by removing any and all leading and trailing underscores.
117 static StringRef NormalizeNameForSpellingComparison(StringRef Name) {
118 return Name.trim("_");
171 : lowerName(Arg.getValueAsString("Name")), upperName(lowerName),
1095 " return \"" << Spellings[I].name() << "\";\n";
1125 // The actual spelling of the name and namespace (if applicable)
1128 std::string Name = Spellings[I].name();
1160 Spelling += Name;
1217 if (S.name() != Spelling.name())
1229 std::string Name = Accessor->getValueAsString("Name");
1236 OS << " bool " << Name << "() const { return SpellingListIndex == ";
1251 Spellings.front().name());
1254 std::string Name = NormalizeNameForSpellingComparison(Spelling.name());
1255 if (Name != FirstName)
1266 // namespace (if present) and name for each attribute spelling. However,
1275 std::string Spelling = S.name();
1285 // Even if the name is not unique, this spelling index corresponds to a
1286 // particular enumerant name that we've calculated.
1334 OS << ".Case(\"" << I.name() << "\", " << LateParsed << ")\n";
1359 if (Emitted.insert(S.name()).second)
1360 OS << ".Case(\"" << S.name() << "\", " << "true" << ")\n";
1381 if (Emitted.insert(S.name()).second)
1382 OS << ".Case(\"" << S.name() << "\", " << "true" << ")\n";
1412 if (Emitted.insert(S.name()).second)
1413 OS << ".Case(\"" << S.name() << "\", " << "true" << ")\n";
1473 // can be elided. If all of the spellings share the same name, the spelling
1714 OS << "#define LAST_ATTR(NAME) ATTR(NAME)\n";
1718 OS << "#define INHERITABLE_ATTR(NAME) ATTR(NAME)\n";
1722 OS << "#define LAST_INHERITABLE_ATTR(NAME) INHERITABLE_ATTR(NAME)\n";
1726 OS << "#define INHERITABLE_PARAM_ATTR(NAME) ATTR(NAME)\n";
1730 OS << "#define LAST_INHERITABLE_PARAM_ATTR(NAME)"
1731 " INHERITABLE_PARAM_ATTR(NAME)\n";
1735 OS << "#define PRAGMA_SPELLING_ATTR(NAME)\n";
1739 OS << "#define LAST_PRAGMA_SPELLING_ATTR(NAME) PRAGMA_SPELLING_ATTR(NAME)\n";
1921 OS << " .Case(\"" << S.name() << "\", " << TestStr << ")\n";
1955 OS << " return llvm::StringSwitch<int>(Name)\n";
1958 OS << " return llvm::StringSwitch<int>(Name)\n";
1961 OS << " return llvm::StringSwitch<int>(Name)\n";
1974 OS << " return llvm::StringSwitch<int>(Name)\n";
1998 OS << " if (Name == \"" << Spellings[I].name() << "\" && "
2157 OS << "#define PARSED_ATTR(NAME) NAME\n";
2226 std::string Name;
2233 Name = R.getValueAsDef("Base")->getName();
2235 Name = R.getName();
2237 uint32_t V = StringSwitch<uint32_t>(Name)
2367 // name of that check to the caller.
2419 // Generate the test condition, as well as a unique function name for the
2425 std::string Part = (*I)->getValueAsString("Name");
2558 // name, we can also bail out early.
2565 std::string Name = Attr.getName() + "AttrSpellingMap";
2567 OS << "static unsigned " << Name << "(const AttributeList &Attr) {\n";
2573 return Name;
2642 emitSourceFileHeader("Attribute name matcher", OS);
2675 std::string RawSpelling = S.name();
2704 OS << "static AttributeList::Kind getAttrKind(StringRef Name, ";
2707 StringMatcher("Name", GNU, OS).Emit();
2709 StringMatcher("Name", Declspec, OS).Emit();
2711 StringMatcher("Name", CXX11, OS).Emit();
2713 StringMatcher("Name", Keywords, OS).Emit();
2715 StringMatcher("Name", Pragma, OS).Emit();
2737 // If the attribute has a semantically-meaningful name (which is determined
2781 const std::string &Name = DocCategory->getValueAsString("Name");
2782 OS << Name << "\n" << std::string(Name.length(), '=') << "\n";
2814 Heading = Spellings.begin()->name();
2819 std::string Spelling = NormalizeNameForSpellingComparison(I->name());
2851 std::string Name;
2853 Name = I.nameSpace() + "::";
2854 Name += I.name();
2856 // If this name is the same as the heading, do not add it.
2857 if (Name != Heading)
2858 Names.push_back(Name);
2939 std::string Cat = Category->getValueAsString("Name");