Lines Matching refs:Name

46   std::string Name;  member
54 std::string Name; member
61 GenericField(StringRef Name) : Name(std::string(Name)) {} in GenericField()
65 std::string Name; member
72 std::string Name; member
82 const GenericField *getFieldByName(StringRef Name) const { in getFieldByName()
84 if (Name == Field.Name) in getFieldByName()
131 Twine("Entry for field '") + Field.Name + "' is null"); in primaryRepresentation()
134 PrintFatalError(Loc, Twine("invalid field type for field '") + Field.Name + in primaryRepresentation()
173 PrintFatalError(Index.Loc, Twine("In table '") + Table.Name + in searchableFieldType()
174 "' lookup method '" + Index.Name + in searchableFieldType()
175 "', key field '" + Field.Name + in searchableFieldType()
182 Twine("In table '") + Table.Name + "' lookup method '" + in searchableFieldType()
183 Index.Name + "', key field '" + Field.Name + in searchableFieldType()
197 parseSearchIndex(GenericTable &Table, const RecordVal *RecVal, StringRef Name,
214 Record *EnumEntry = Rec->getValueAsDef(Index.Fields[0].Name); in getNumericKey()
218 return getInt(Rec, Index.Fields[0].Name); in getNumericKey()
226 Init *LHSI = LHS->getValueInit(Field.Name); in compareBy()
227 Init *RHSI = RHS->getValueInit(Field.Name); in compareBy()
239 if (std::tie(LHSi.TargetPrefix, LHSi.Name) < in compareBy()
240 std::tie(RHSi.TargetPrefix, RHSi.Name)) in compareBy()
242 if (std::tie(LHSi.TargetPrefix, LHSi.Name) > in compareBy()
243 std::tie(RHSi.TargetPrefix, RHSi.Name)) in compareBy()
300 OS << "enum " << Enum.Name << " {\n"; in emitGenericEnum()
323 IndexName = Table.Name; in emitLookupFunction()
330 << Field.Name << ";\n"; in emitLookupFunction()
355 Index.Loc, Field, Entry.first->getValueInit(Field.Name)); in emitLookupFunction()
385 OS << " size_t Idx = " << Index.Fields[0].Name << ";\n"; in emitLookupFunction()
390 OS << "&" << Table.Name << "[Table[Idx]._index]"; in emitLookupFunction()
399 Index.Loc, Field, IndexRows[0]->getValueInit(Field.Name)); in emitLookupFunction()
401 Index.Loc, Field, IndexRows.back()->getValueInit(Field.Name)); in emitLookupFunction()
402 OS << " if ((" << Field.Name << " < " << FirstRepr << ") ||\n"; in emitLookupFunction()
403 OS << " (" << Field.Name << " > " << LastRepr << "))\n"; in emitLookupFunction()
410 << " " << Field.Name << ";\n"; in emitLookupFunction()
416 OS << LS << Field.Name; in emitLookupFunction()
421 Twine("In table '") + Table.Name + in emitLookupFunction()
424 Field.Name + "'"); in emitLookupFunction()
435 OS << " int Cmp" << Field.Name << " = StringRef(LHS." << Field.Name in emitLookupFunction()
436 << ").compare(RHS." << Field.Name << ");\n"; in emitLookupFunction()
437 OS << " if (Cmp" << Field.Name << " < 0) return true;\n"; in emitLookupFunction()
438 OS << " if (Cmp" << Field.Name << " > 0) return false;\n"; in emitLookupFunction()
442 OS << " if ((unsigned)LHS." << Field.Name << " < (unsigned)RHS." in emitLookupFunction()
443 << Field.Name << ")\n"; in emitLookupFunction()
445 OS << " if ((unsigned)LHS." << Field.Name << " > (unsigned)RHS." in emitLookupFunction()
446 << Field.Name << ")\n"; in emitLookupFunction()
449 OS << " if (LHS." << Field.Name << " < RHS." << Field.Name << ")\n"; in emitLookupFunction()
451 OS << " if (LHS." << Field.Name << " > RHS." << Field.Name << ")\n"; in emitLookupFunction()
462 OS << " ||\n Key." << Field.Name << " != Idx->" << Field.Name; in emitLookupFunction()
468 OS << " return &" << Table.Name << "[Idx->_index];\n"; in emitLookupFunction()
476 OS << "const " << Table.CppTypeName << " *" << Index.Name << "("; in emitLookupDeclaration()
481 << Field.Name; in emitLookupDeclaration()
504 OS << "constexpr " << Table.CppTypeName << " " << Table.Name << "[] = {\n"; in emitGenericTable()
513 Entry->getValueInit(Field.Name)); in emitGenericTable()
549 GenericTable &Table, const RecordVal *KeyRecVal, StringRef Name, in parseSearchIndex() argument
552 Index->Name = std::string(Name); in parseSearchIndex()
561 Twine("In table '") + Table.Name + in parseSearchIndex()
570 KeyRecVal, Twine("In lookup method '") + Name + "', early-out is not " + in parseSearchIndex()
581 StringRef Name; in collectEnumEntries() local
583 Name = EntryRec->getName(); in collectEnumEntries()
585 Name = EntryRec->getValueAsString(NameField); in collectEnumEntries()
591 Enum.Entries.push_back(std::make_unique<GenericEnum::Entry>(Name, Value)); in collectEnumEntries()
611 Twine("Table '") + Table.Name + "' has no entries"); in collectTableEntries()
615 auto TI = dyn_cast<TypedInit>(EntryRec->getValueInit(Field.Name)); in collectTableEntries()
618 "' for table '" + Table.Name + in collectTableEntries()
619 "' is missing field '" + Field.Name + in collectTableEntries()
627 PrintFatalError(EntryRec->getValue(Field.Name), in collectTableEntries()
628 Twine("Field '") + Field.Name + "' of table '" + in collectTableEntries()
629 Table.Name + "' entry has incompatible type: " + in collectTableEntries()
643 PrintFatalError(Twine("Cannot determine type of field '") + Field.Name + in collectTableEntries()
644 "' in table '" + Table.Name + "'. Maybe it is not used?"); in collectTableEntries()
678 Enum->Name = std::string(EnumRec->getName()); in run()
696 Table->Name = std::string(TableRec->getName()); in run()
708 Twine("Table '") + Table->Name + in run()
790 Enum->Name = (Twine(Class->getName()) + "Values").str(); in run()
800 Table->Name = (Twine(Class->getName()) + "sList").str(); in run()
822 std::string Name = in run() local
825 Name, {Field}, false)); in run()