Lines Matching defs:Name
362 // If this record is anonymous, it's no problem, just generate a new name
386 /// GetNewAnonymousName - Generate a unique anonymous name that can be used as
392 /// ParseObjectName - If an object name is specified, return it. Otherwise,
418 TokError("Record name is not typed!");
427 /// ParseClassID - Parse and resolve a reference to a class name. This returns
434 TokError("expected name for ClassID");
446 /// ParseMultiClassID - Parse and resolve a reference to a multiclass name.
453 TokError("expected name for MultiClassID");
730 const std::string &Name, SMLoc NameLoc,
733 if (const RecordVal *RV = CurRec->getValue(Name))
734 return VarInit::get(Name, RV->getType());
736 Init *TemplateArgName = QualifyName(*CurRec, CurMultiClass, Name, ":");
739 TemplateArgName = QualifyName(CurMultiClass->Rec, CurMultiClass, Name,
750 Init *MCName = QualifyName(CurMultiClass->Rec, CurMultiClass, Name,
765 if (IterVar && IterVar->getName() == Name)
770 return StringInit::get(Name);
772 if (Record *D = Records.getDef(Name))
776 Error(NameLoc, "Variable not defined: '" + Name + "'");
780 return StringInit::get(Name);
1123 TokError("expected type name for operator");
1131 TokError("expected type name for operator");
1136 TokError("expected type name for operator");
1207 std::string Name = Lex.getCurStrVal();
1209 return ParseIDValue(CurRec, Name, NameLoc, Mode); // Value ::= IDValue
1220 Record *Class = Records.getClass(Name);
1222 Error(NameLoc, "Expected a class name, got '" + Name + "'");
1269 // !cast<ItemType>(!strconcat(NAME, AnonName)).
1270 const RecordVal *MCNameRV = CurMultiClass->Rec.getValue("NAME");
1271 assert(MCNameRV && "multiclass record must have a NAME");
1446 // If the operator name is present, parse it.
1450 TokError("expected variable name in dag operator");
1567 Lex.Lex(); // eat field name
1645 // If the variable name is present, add it.
1649 TokError("expected variable name in dag literal");
1717 /// ParseDeclaration - Read a declaration, returning the name of field ID, or an
1767 // Return the name, even if an error is thrown. This is so that we can
1777 /// the name of the declared object or a NULL Init on error. Return
1778 /// the name of the parsed initializer list through ForeachListName.
1913 Lex.Lex(); // eat the field name.
1973 if (SetValue(CurRec, LetStack[i][j].Loc, LetStack[i][j].Name,
2027 Init *Name = ParseObjectName(CurMultiClass);
2028 if (Name)
2029 CurRecOwner = make_unique<Record>(Name, DefLoc, Records);
2050 // and this available for indirect name resolution when defs derived from
2067 // See Record::setName(). This resolve step will see any new name
2155 return TokError("expected class name after 'class' keyword");
2160 if (CurRec->getValues().size() > 1 || // Account for NAME.
2172 Lex.Lex(); // eat the name.
2197 std::string Name = Lex.getCurStrVal();
2217 Result.push_back(LetRecord(Name, Bits, Val, NameLoc));
2285 return TokError("expected identifier after multiclass for name");
2286 std::string Name = Lex.getCurStrVal();
2289 MultiClasses.insert(std::make_pair(Name,
2290 llvm::make_unique<MultiClass>(Name, Lex.getLoc(),Records)));
2293 return TokError("multiclass '" + Name + "' already defined");
2366 // Add in the defm name. If the defm prefix is empty, give each
2367 // instantiated def a unique name. Otherwise, if "#NAME#" exists in the
2368 // name, substitute the prefix for #NAME#. Otherwise, use the defm name
2383 // resolve. We should concatenate the given prefix and name.
2401 // Set the value for NAME. We don't resolve references to it 'til later,
2404 if (SetValue(CurRec.get(), Ref.RefRange.Start, "NAME",
2407 + CurRec->getNameInitAsString() + ":NAME to '"
2413 // NAME and need to replace it. We need to do at least this much greedily,
2414 // otherwise nested multiclasses will end up with incorrect NAME expansions.
2416 RecordVal *DefNameRV = CurRec->getValue("NAME");
2421 // Now that we're at the top level, resolve all NAME references
2423 RecordVal *DefNameRV = CurRec->getValue("NAME");
2426 // Now that NAME references are resolved and we're at the top level of
2429 // multiclass and its name won't be fully resolvable until we see
2432 // defs as more than one probably refers to NAME or some other
2641 // name for the def that might have been created when resolving