Lines Matching defs:Scope
33 if (ScopeMatcher *Scope = dyn_cast<ScopeMatcher>(N)) {
34 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) {
35 std::unique_ptr<Matcher> Child(Scope->takeChild(i));
37 Scope->resetChild(i, Child.release());
195 /// Scope
202 /// Scope
208 ScopeMatcher *Scope = nullptr;
210 while (!Scope) {
217 Scope = dyn_cast<ScopeMatcher>(N);
218 if (!Scope)
227 for (unsigned i = 0, e = Scope->getNumChildren(); i != e; ++i) {
229 std::unique_ptr<Matcher> Child(Scope->takeChild(i));
382 // we can convert this Scope to be a OpcodeSwitch instead.
471 std::unique_ptr<Matcher> Scope(SM);
472 FactorNodes(Scope);
473 M.second = Scope.release();
488 // Reassemble the Scope node with the adjusted children.
489 Scope->setNumChildren(OptionsToMatch.size());
491 Scope->resetChild(i, OptionsToMatch[i]);