Lines Matching refs:Defm
379 K == tgtok::Defm || K == tgtok::Let ||
2243 return TokError("expected 'let', 'def' or 'defm' in multiclass body");
2246 case tgtok::Defm:
2268 // Add in the defm name. If the defm prefix is empty, give each
2270 // name, substitute the prefix for #NAME#. Otherwise, use the defm name
2330 // currently in a multiclass, it means this defm appears inside a
2332 // the top-level defm. Therefore, we don't add this to the
2340 "' already defined, instantiating defm with subdef '" +
2391 return Error(DefmPrefixLoc, "when instantiating this defm");
2393 // Don't create a top level definition for defm inside multiclasses,
2402 return Error(DefmPrefixLoc, "defm '" + CurRec->getNameInitAsString() +
2421 /// DefMInst ::= DEFM ID ':' DefmSubClassRef ';'
2424 assert(Lex.getCode() == tgtok::Defm && "Unexpected token!");
2428 if (Lex.Lex() == tgtok::Id) { // eat the defm.
2434 return TokError("expected ':' after defm identifier");
2490 // A defm can inherit from regular classes (non-multiclass) as
2535 return TokError("expected ';' at end of defm");
2551 return TokError("Expected class, def, defm, multiclass or let definition");
2555 case tgtok::Defm: return ParseDefm(MC);