Lines Matching defs:Name
517 // bits initializer will resolve into VarBitInit to keep the field name and bit
778 std::string Name = LHSs->getValue();
782 if (const RecordVal *RV = CurRec->getValue(Name)) {
785 return VarInit::get(Name, RV->getType());
788 Init *TemplateArgName = QualifyName(*CurRec, CurMultiClass, Name,
803 Init *MCName = QualifyName(CurMultiClass->Rec, CurMultiClass, Name, "::");
816 if (Record *D = (CurRec->getRecords()).getDef(Name))
820 "Undefined reference:'" + Name + "'\n");
1340 assert(NameString && "VarInit name is not a string!");
1562 ArrayRef<std::string>::iterator Name = NameRange.begin();
1564 assert(Name != NameRange.end() && "Arg name underflow!");
1566 ID.AddString(*Name++);
1568 assert(Name == NameRange.end() && "Arg name overflow!");
1649 : Name(N), Ty(T), Prefix(P) {
1655 : Name(StringInit::get(N)), Ty(T), Prefix(P) {
1661 StringInit *NameString = dyn_cast<StringInit>(Name);
1662 assert(NameString && "RecordVal name is not a string!");
1684 // replaced with the top-level def name at instantiation time.
1685 RecordVal DN("NAME", StringRecTy::get(), 0);
1690 // Ensure the record name has string type.
1691 const TypedInit *TypedName = dyn_cast<const TypedInit>(Name);
1692 assert(TypedName && "Record name is not typed!");
1695 PrintFatalError(getLoc(), "Record name is not a string!");
1705 const StringInit *NameString = dyn_cast<StringInit>(Name);
1706 assert(NameString && "Record name is not a string!");
1711 Name = NewName;
1713 // DO NOT resolve record values to the name at this point because
1720 // reference the record name. Indeed, the reason for having the
1721 // record name be an Init is to provide this flexibility. The extra
1726 void Record::setName(const std::string &Name) {
1727 setName(StringInit::get(Name));
1749 Init *NewName = Name->resolveReferences(*this, RV);
1793 /// getValueInit - Return the initializer for a value with the specified name,
2023 /// that derive from the specified class name. If a class with the specified
2024 /// name does not exist, an error is printed and true is returned.
2040 /// to CurRec's name.
2042 Init *Name, const std::string &Scoper) {
2043 RecTy *Type = cast<TypedInit>(Name)->getType();
2051 Name,
2069 /// to CurRec's name.
2071 const std::string &Name,
2073 return QualifyName(CurRec, CurMultiClass, StringInit::get(Name), Scoper);