Home | History | Annotate | Download | only in TableGen

Lines Matching refs:Children

122   /// operates on the node or its children without potential side effects or a
188 /// ScopeMatcher - This attempts to match each of its children to find the first
190 /// If none of the children match then this check fails. It never has a 'next'.
192 SmallVector<Matcher*, 4> Children;
194 ScopeMatcher(ArrayRef<Matcher *> children)
195 : Matcher(Scope), Children(children.begin(), children.end()) {
199 unsigned getNumChildren() const { return Children.size(); }
201 Matcher *getChild(unsigned i) { return Children[i]; }
202 const Matcher *getChild(unsigned i) const { return Children[i]; }
205 delete Children[i];
206 Children[i] = N;
210 Matcher *Res = Children[i];
211 Children[i] = nullptr;
216 if (NC < Children.size()) {
217 // delete any children we're about to lose pointers to.
218 for (unsigned i = NC, e = Children.size(); i != e; ++i)
219 delete Children[i];
221 Children.resize(NC);