Lines Matching refs:Defm
379 K == tgtok::Defm || K == tgtok::Let ||
2254 return TokError("expected 'let', 'def' or 'defm' in multiclass body");
2257 case tgtok::Defm:
2279 // Add in the defm name. If the defm prefix is empty, give each
2281 // name, substitute the prefix for #NAME#. Otherwise, use the defm name
2341 // currently in a multiclass, it means this defm appears inside a
2343 // the top-level defm. Therefore, we don't add this to the
2351 "' already defined, instantiating defm with subdef '" +
2402 return Error(DefmPrefixLoc, "when instantiating this defm");
2404 // Don't create a top level definition for defm inside multiclasses,
2413 return Error(DefmPrefixLoc, "defm '" + CurRec->getNameInitAsString() +
2432 /// DefMInst ::= DEFM ID ':' DefmSubClassRef ';'
2435 assert(Lex.getCode() == tgtok::Defm && "Unexpected token!");
2439 if (Lex.Lex() == tgtok::Id) { // eat the defm.
2445 return TokError("expected ':' after defm identifier");
2501 // A defm can inherit from regular classes (non-multiclass) as
2546 return TokError("expected ';' at end of defm");
2562 return TokError("Expected class, def, defm, multiclass or let definition");
2566 case tgtok::Defm: return ParseDefm(MC);