Home | History | Annotate | Download | only in TableGen

Lines Matching full:spellings

61   std::vector<Record *> Spellings = Attr.getValueAsListOfDefs("Spellings");
64 for (const auto &Spelling : Spellings) {
1080 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(R);
1083 if (Spellings.empty()) {
1093 for (unsigned I = 0; I < Spellings.size(); ++I)
1095 " return \"" << Spellings[I].name() << "\";\n";
1106 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(R);
1111 if (Spellings.empty()) {
1122 for (unsigned I = 0; I < Spellings.size(); ++ I) {
1128 std::string Name = Spellings[I].name();
1129 std::string Variety = Spellings[I].variety();
1137 std::string Namespace = Spellings[I].nameSpace();
1151 std::string Namespace = Spellings[I].nameSpace();
1230 std::vector<FlattenedSpelling> Spellings =
1237 for (unsigned Index = 0; Index < Spellings.size(); ++Index) {
1238 OS << getSpellingListIndex(SpellingList, Spellings[Index]);
1239 if (Index != Spellings.size() -1)
1248 SpellingNamesAreCommon(const std::vector<FlattenedSpelling>& Spellings) {
1249 assert(!Spellings.empty() && "An empty list of spellings was provided");
1251 Spellings.front().name());
1253 llvm::make_range(std::next(Spellings.begin()), Spellings.end())) {
1263 CreateSemanticSpellings(const std::vector<FlattenedSpelling> &Spellings,
1272 for (auto I = Spellings.begin(), E = Spellings.end(); I != E; ++I, ++Idx) {
1297 if (I != Spellings.begin())
1299 // Duplicate spellings are not considered part of the semantic spelling
1328 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*Attr);
1331 for (const auto &I : Spellings) {
1355 // All these spellings take a single type argument.
1356 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*Attr);
1358 for (const auto &S : Spellings) {
1377 // All these spellings take are parsed unevaluated.
1378 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(Attr);
1380 for (const auto &S : Spellings) {
1408 // All these spellings take an identifier argument.
1409 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*Attr);
1411 for (const auto &S : Spellings) {
1470 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(R);
1472 // If there are zero or one spellings, all spelling-related functionality
1473 // can be elided. If all of the spellings share the same name, the spelling
1475 bool ElideSpelling = (Spellings.size() <= 1) ||
1476 SpellingNamesAreCommon(Spellings);
1482 OS << CreateSemanticSpellings(Spellings, SemanticToSyntacticMap);
1701 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*R);
1702 return std::find_if(Spellings.begin(), Spellings.end(),
1705 }) != Spellings.end();
1864 std::vector<Record *> Spellings = Attr->getValueAsListOfDefs("Spellings");
1865 for (const auto &Spelling : Spellings) {
1917 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*Attr);
1918 for (const auto &S : Spellings)
1926 // Emits the list of spellings for attributes.
1939 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*R);
1940 for (const auto &SI : Spellings) {
1983 emitSourceFileHeader("Code to translate different attribute spellings "
1995 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(R);
1997 for (unsigned I = 0; I < Spellings.size(); ++ I) {
1998 OS << " if (Name == \"" << Spellings[I].name() << "\" && "
2000 << StringSwitch<unsigned>(Spellings[I].variety())
2007 << " && Scope == \"" << Spellings[I].nameSpace() << "\")\n"
2555 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(Attr);
2557 // If there are zero or one spellings, or all of the spellings share the same
2559 if (Spellings.size() <= 1 || SpellingNamesAreCommon(Spellings))
2564 std::string Enum = CreateSemanticSpellings(Spellings, SemanticToSyntacticMap);
2577 // Look at the spellings for this subject; if there are any spellings which
2579 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(Attr);
2580 for (const auto &I : Spellings) {
2613 // the spellings are identical, and custom parsing rules match, etc.
2653 // Attribute spellings can be shared between target-specific attributes,
2673 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(Attr);
2674 for (const auto &S : Spellings) {
2740 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(R);
2741 if (Spellings.size() > 1 && !SpellingNamesAreCommon(Spellings))
2803 // documentation. This may not be a limiting factor since the spellings
2806 std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*Doc.Attribute);
2813 if (Spellings.size() == 1)
2814 Heading = Spellings.begin()->name();
2817 for (auto I = Spellings.begin(), E = Spellings.end();
2834 // Gather a list of unique spellings; this is not the same as the semantic
2840 for (const auto &I : Spellings) {
2861 // Print out the heading for the attribute. If there are alternate spellings,
2876 "Attribute has no supported spellings; cannot be "