Home | History | Annotate | Download | only in TableGen

Lines Matching refs:children

119   /// operates on the node or its children without potential side effects or a
183 /// ScopeMatcher - This attempts to match each of its children to find the first
185 /// If none of the children match then this check fails. It never has a 'next'.
187 SmallVector<Matcher*, 4> Children;
189 ScopeMatcher(Matcher *const *children, unsigned numchildren)
190 : Matcher(Scope), Children(children, children+numchildren) {
194 unsigned getNumChildren() const { return Children.size(); }
196 Matcher *getChild(unsigned i) { return Children[i]; }
197 const Matcher *getChild(unsigned i) const { return Children[i]; }
200 delete Children[i];
201 Children[i] = N;
205 Matcher *Res = Children[i];
206 Children[i] = 0;
211 if (NC < Children.size()) {
212 // delete any children we're about to lose pointers to.
213 for (unsigned i = NC, e = Children.size(); i != e; ++i)
214 delete Children[i];
216 Children.resize(NC);