Lines Matching refs:Name

47   std::string Name;  member
55 std::string Name; member
62 GenericField(StringRef Name) : Name(std::string(Name)) {} in GenericField()
66 std::string Name; member
73 std::string Name; member
83 const GenericField *getFieldByName(StringRef Name) const { in getFieldByName()
85 if (Name == Field.Name) in getFieldByName()
132 Twine("Entry for field '") + Field.Name + "' is null"); in primaryRepresentation()
135 PrintFatalError(Loc, Twine("invalid field type for field '") + Field.Name + in primaryRepresentation()
174 PrintFatalError(Index.Loc, Twine("In table '") + Table.Name + in searchableFieldType()
175 "' lookup method '" + Index.Name + in searchableFieldType()
176 "', key field '" + Field.Name + in searchableFieldType()
181 Twine("In table '") + Table.Name + "' lookup method '" + in searchableFieldType()
182 Index.Name + "', key field '" + Field.Name + in searchableFieldType()
196 parseSearchIndex(GenericTable &Table, const RecordVal *RecVal, StringRef Name,
213 Record *EnumEntry = Rec->getValueAsDef(Index.Fields[0].Name); in getNumericKey()
217 return getInt(Rec, Index.Fields[0].Name); in getNumericKey()
225 Init *LHSI = LHS->getValueInit(Field.Name); in compareBy()
226 Init *RHSI = RHS->getValueInit(Field.Name); in compareBy()
238 if (std::tie(LHSi.TargetPrefix, LHSi.Name) < in compareBy()
239 std::tie(RHSi.TargetPrefix, RHSi.Name)) in compareBy()
241 if (std::tie(LHSi.TargetPrefix, LHSi.Name) > in compareBy()
242 std::tie(RHSi.TargetPrefix, RHSi.Name)) in compareBy()
299 OS << "enum " << Enum.Name << " {\n"; in emitGenericEnum()
322 IndexName = Table.Name; in emitLookupFunction()
329 << Field.Name << ";\n"; in emitLookupFunction()
354 Index.Loc, Field, Entry.first->getValueInit(Field.Name)); in emitLookupFunction()
384 OS << " size_t Idx = " << Index.Fields[0].Name << ";\n"; in emitLookupFunction()
389 OS << "&" << Table.Name << "[Table[Idx]._index]"; in emitLookupFunction()
398 Index.Loc, Field, IndexRows[0]->getValueInit(Field.Name)); in emitLookupFunction()
400 Index.Loc, Field, IndexRows.back()->getValueInit(Field.Name)); in emitLookupFunction()
401 OS << " if ((" << Field.Name << " < " << FirstRepr << ") ||\n"; in emitLookupFunction()
402 OS << " (" << Field.Name << " > " << LastRepr << "))\n"; in emitLookupFunction()
409 << " " << Field.Name << ";\n"; in emitLookupFunction()
415 OS << LS << Field.Name; in emitLookupFunction()
420 Twine("In table '") + Table.Name + in emitLookupFunction()
423 Field.Name + "'"); in emitLookupFunction()
434 OS << " int Cmp" << Field.Name << " = StringRef(LHS." << Field.Name in emitLookupFunction()
435 << ").compare(RHS." << Field.Name << ");\n"; in emitLookupFunction()
436 OS << " if (Cmp" << Field.Name << " < 0) return true;\n"; in emitLookupFunction()
437 OS << " if (Cmp" << Field.Name << " > 0) return false;\n"; in emitLookupFunction()
441 OS << " if ((unsigned)LHS." << Field.Name << " < (unsigned)RHS." in emitLookupFunction()
442 << Field.Name << ")\n"; in emitLookupFunction()
444 OS << " if ((unsigned)LHS." << Field.Name << " > (unsigned)RHS." in emitLookupFunction()
445 << Field.Name << ")\n"; in emitLookupFunction()
448 OS << " if (LHS." << Field.Name << " < RHS." << Field.Name << ")\n"; in emitLookupFunction()
450 OS << " if (LHS." << Field.Name << " > RHS." << Field.Name << ")\n"; in emitLookupFunction()
461 OS << " ||\n Key." << Field.Name << " != Idx->" << Field.Name; in emitLookupFunction()
467 OS << " return &" << Table.Name << "[Idx->_index];\n"; in emitLookupFunction()
475 OS << "const " << Table.CppTypeName << " *" << Index.Name << "("; in emitLookupDeclaration()
480 << Field.Name; in emitLookupDeclaration()
503 OS << "constexpr " << Table.CppTypeName << " " << Table.Name << "[] = {\n"; in emitGenericTable()
512 Entry->getValueInit(Field.Name)); in emitGenericTable()
548 GenericTable &Table, const RecordVal *KeyRecVal, StringRef Name, in parseSearchIndex() argument
551 Index->Name = std::string(Name); in parseSearchIndex()
560 Twine("In table '") + Table.Name + in parseSearchIndex()
569 KeyRecVal, Twine("In lookup method '") + Name + "', early-out is not " + in parseSearchIndex()
580 StringRef Name; in collectEnumEntries() local
582 Name = EntryRec->getName(); in collectEnumEntries()
584 Name = EntryRec->getValueAsString(NameField); in collectEnumEntries()
590 Enum.Entries.push_back(std::make_unique<GenericEnum::Entry>(Name, Value)); in collectEnumEntries()
610 Twine("Table '") + Table.Name + "' has no entries"); in collectTableEntries()
614 auto TI = dyn_cast<TypedInit>(EntryRec->getValueInit(Field.Name)); in collectTableEntries()
617 "' for table '" + Table.Name + in collectTableEntries()
618 "' is missing field '" + Field.Name + in collectTableEntries()
626 PrintFatalError(EntryRec->getValue(Field.Name), in collectTableEntries()
627 Twine("Field '") + Field.Name + "' of table '" + in collectTableEntries()
628 Table.Name + "' entry has incompatible type: " + in collectTableEntries()
642 PrintFatalError(Twine("Cannot determine type of field '") + Field.Name + in collectTableEntries()
643 "' in table '" + Table.Name + "'. Maybe it is not used?"); in collectTableEntries()
670 Enum->Name = std::string(EnumRec->getName()); in run()
688 Table->Name = std::string(TableRec->getName()); in run()
700 Twine("Table '") + Table->Name + in run()
766 Enum->Name = (Twine(Class->getName()) + "Values").str(); in run()
776 Table->Name = (Twine(Class->getName()) + "sList").str(); in run()
798 std::string Name = in run() local
801 Name, {Field}, false)); in run()