Home | History | Annotate | Download | only in TableGen

Lines Matching defs:Root

32   Record Root;
44 // the record's name plus the base suffix, but if it is the root node and
47 if (&R == &Root && !BaseSuffix.empty())
58 : Records(R), Root(N, SMLoc(), R), BaseSuffix(S)
97 OS << "ABSTRACT_" << macroName(Root.getName()) << "(" << NodeName << "("
124 if (Base == &Root)
125 OS << "LAST_" << macroName(Root.getName()) << "_RANGE(";
127 OS << macroName(Root.getName()) << "_RANGE(";
139 OS << "#ifndef ABSTRACT_" << macroName(Root.getName()) << "\n";
140 OS << "# define ABSTRACT_" << macroName(Root.getName()) << "(Type) Type\n";
143 OS << "#ifndef " << macroName(Root.getName()) << "_RANGE\n";
145 << macroName(Root.getName()) << "_RANGE(Base, First, Last)\n";
148 OS << "#ifndef LAST_" << macroName(Root.getName()) << "_RANGE\n";
150 << macroName(Root.getName()) << "_RANGE(Base, First, Last) "
151 << macroName(Root.getName()) << "_RANGE(Base, First, Last)\n";
156 = Records.getAllDerivedDefinitions(Root.getName());
166 Tree.insert(std::make_pair(&Root, R));
169 EmitNode(Tree, OS, &Root);
171 OS << "#undef " << macroName(Root.getName()) << "\n";
172 OS << "#undef " << macroName(Root.getName()) << "_RANGE\n";
173 OS << "#undef LAST_" << macroName(Root.getName()) << "_RANGE\n";
174 OS << "#undef ABSTRACT_" << macroName(Root.getName()) << "\n";