Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Def

227     // Clone the def and add it to the current multiclass
230 // Add all of the values in the superclass into the current def.
270 Record *Def = *j;
272 if (SetValue(Def, SubMultiClass.RefRange.Start, SMCTArgs[i],
278 Def->resolveReferencesTo(Def->getValue(SMCTArgs[i]));
281 Def->removeValue(SMCTArgs[i]);
351 Error(Loc, "when instantiating this def");
367 Error(Loc, "def already exists: " + IterRec->getNameInitAsString());
383 return K == tgtok::Class || K == tgtok::Def ||
1245 // Copy the template arguments for the multiclass into the def.
1255 // We can't return the prototype def here, instead return:
1682 /// including within a def or in the template args for a def (which which case
1685 /// also happen within a def that is within a multiclass, which will set both
1817 /// template args for a def, which may or may not be in a multiclass. If null,
1852 /// ParseBodyItem - Parse a single item at within the body of a def or class.
1900 /// ParseBody - Read the body of a class or def. Return true on error, false on
1939 /// ParseObjectBody - Parse the body of a def or class. This consists of an
1940 /// optional ClassList followed by a Body. CurRec is the current def or class
1975 /// ParseDef - Parse and return a top level or multiclass def, return the record
1978 /// DefInst ::= DEF ObjectName ObjectBody
1982 assert(Lex.getCode() == tgtok::Def && "Unknown tok");
1983 Lex.Lex(); // Eat the 'def' token.
1995 // Top-level def definition.
1999 Error(DefLoc, "def '" + CurRec->getNameInitAsString()
2016 // Otherwise, a def inside a multiclass, add it to the multiclass.
2020 Error(DefLoc, "def '" + CurRec->getNameInitAsString() +
2028 if (!CurMultiClass) // Def's in multiclasses aren't really defs.
2030 // for the def that might have been created when resolving
2038 // Copy the template arguments for the multiclass into the def.
2051 "Could not process loops for def" + CurRec->getNameInitAsString());
2295 return TokError("multiclass must contain at least one def");
2300 return TokError("expected 'let', 'def' or 'defm' in multiclass body");
2302 case tgtok::Def:
2326 // instantiated def a unique name. Otherwise, if "#NAME#" exists in the
2381 // in the resultant defs that weren't in the def names themselves.
2396 Error(DefmPrefixRange.Start, "def '" + CurRec->getNameInitAsString() +
2446 // If the mdef is inside a 'let' expression, add to each def.
2463 // Copy the template arguments for the multiclass into the new def.
2509 // instantiate each def contained in the multiclass with the SubClassRef
2521 // Loop over all the def's in the multiclass, instantiating each one.
2533 return Error(SubClassLoc, "could not instantiate def");
2536 return Error(SubClassLoc, "could not instantiate def");
2562 // regular 'def' and inherit all record values.
2590 // name for the def that might have been created when resolving
2611 return TokError("Expected class, def, defm, multiclass or let definition");
2613 case tgtok::Def: return ParseDef(MC);