Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Spelling

38   explicit FlattenedSpelling(const Record &Spelling) :
39 V(Spelling.getValueAsString("Variety")),
40 N(Spelling.getValueAsString("Name")) {
42 assert(V != "GCC" && "Given a GCC spelling, which means this hasn't been"
45 NS = Spelling.getValueAsString("Namespace");
47 K = Spelling.getValueAsBitOrUnset("KnownToGCC", Unset);
60 for (const auto &Spelling : Spellings) {
61 if (Spelling->getValueAsString("Variety") == "GCC") {
62 // Gin up two new spelling objects to add into the list.
63 Ret.push_back(FlattenedSpelling("GNU", Spelling->getValueAsString("Name"),
66 "CXX11", Spelling->getValueAsString("Name"), "gnu", true));
68 Ret.push_back(FlattenedSpelling(*Spelling));
121 // Normalize attribute spelling only if the spelling has both leading
1031 OS << " return \"(No spelling)\";\n}\n\n";
1037 " llvm_unreachable(\"Unknown attribute spelling!\");\n"
1038 " return \"(No spelling)\";\n";
1066 " llvm_unreachable(\"Unknown attribute spelling!\");\n"
1072 // The actual spelling of the name and namespace (if applicable)
1074 llvm::SmallString<64> Spelling;
1086 Spelling += Namespace;
1087 Spelling += "::";
1100 Spelling += Namespace;
1101 Spelling += " ";
1107 Spelling += Name;
1111 " OS << \"" + Prefix.str() + Spelling.str();
1123 if (Spelling == "availability") {
1147 /// \brief Return the index of a spelling in a spelling list.
1150 const FlattenedSpelling &Spelling) {
1151 assert(SpellingList.size() && "Spelling list is empty!");
1155 if (S.variety() != Spelling.variety())
1157 if (S.nameSpace() != Spelling.nameSpace())
1159 if (S.name() != Spelling.name())
1165 llvm_unreachable("Unknown spelling!");
1176 "Attribute with empty spelling list can't have accessors!");
1194 for (const auto &Spelling :
1196 std::string Name = NormalizeNameForSpellingComparison(Spelling.name());
1208 // namespace (if present) and name for each attribute spelling. However,
1211 std::string Ret(" enum Spelling {\n");
1217 std::string Spelling = S.name();
1225 EnumName += NormalizeNameForSpellingComparison(Spelling);
1227 // Even if the name is not unique, this spelling index corresponds to a
1234 // semantic spelling, and can be elided.
1251 << "llvm_unreachable(\"Unknown spelling list index\");\n";
1409 // If there are zero or one spellings, all spelling-related functionality
1410 // can be elided. If all of the spellings share the same name, the spelling
1415 // This maps spelling index values to semantic Spelling enumerants.
1424 OS << ", Spelling S";
1514 OS << " Spelling getSemanticSpelling() const {\n";
1684 OS << " unsigned Spelling = Record[Idx++];\n";
1696 OS << ", Spelling);\n";
1804 // spelling variety.
2331 // such as target-specific attributes with a shared spelling, collapse the
2450 // and spelling list index mapping methods.
2530 std::string Spelling, Variety = S.variety();
2533 Spelling += S.nameSpace();
2534 Spelling += "::";
2544 assert(Matches && "Unsupported spelling variety found");
2546 Spelling += NormalizeAttrSpelling(RawSpelling);
2548 Matches->push_back(StringMatcher::StringPair(Spelling,
2551 Matches->push_back(StringMatcher::StringPair(Spelling,
2591 // by whether there is a Spelling enumeration for it), then write out the
2592 // spelling used for the attribute.
2680 // FIXME: there is no way to have a per-spelling category for the attribute
2690 // If there's only one spelling, we can simply use that.
2697 std::string Spelling = NormalizeNameForSpellingComparison(I->name());
2698 Uniques.insert(Spelling);
2700 // If the semantic map has only one spelling, that is sufficient for our
2713 // spelling for the attribute. Variations in underscores and other non-
2726 // Mask in the supported spelling.
2757 // List what spelling syntaxes the attribute supports.