Lines Matching refs:Scope

161   EHCleanupScope *Scope =
174 return Scope->getCleanupBuffer();
378 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
384 Old.strictlyEncloses(Scope.getEnclosingNormalCleanup());
418 EHCleanupScope &Scope) {
419 assert(Scope.isNormalCleanup());
420 llvm::BasicBlock *Entry = Scope.getNormalBlock();
423 Scope.setNormalBlock(Entry);
565 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
566 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups());
569 bool IsActive = Scope.isActive();
571 Scope.shouldTestFlagInNormalCleanup() ? Scope.getActiveFlag() : nullptr;
573 Scope.shouldTestFlagInEHCleanup() ? Scope.getActiveFlag() : nullptr;
577 llvm::BasicBlock *EHEntry = Scope.getCachedEHDispatchBlock();
578 assert(Scope.hasEHBranches() == (EHEntry != nullptr));
580 EHScopeStack::stable_iterator EHParent = Scope.getEnclosingEHScope();
585 unsigned FixupDepth = Scope.getFixupDepth();
589 bool HasExistingBranches = Scope.hasBranches();
605 assert(!Scope.isNormalCleanup() || !HasPrebranchedFallthrough ||
606 (Scope.getNormalBlock() &&
608 == Scope.getNormalBlock()));
611 if (Scope.isNormalCleanup() &&
618 if (Scope.isNormalCleanup() && HasPrebranchedFallthrough && !IsActive) {
625 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup());
637 llvm::BasicBlock *normalEntry = Scope.getNormalBlock();
646 destroyOptimisticNormalEntry(*this, Scope);
657 CleanupBuffer.reserve(Scope.getCleanupSize());
659 Scope.getCleanupBuffer(), Scope.getCleanupSize());
660 CleanupBuffer.set_size(Scope.getCleanupSize());
665 if (Scope.isNormalCleanup())
667 if (Scope.isEHCleanup())
671 destroyOptimisticNormalEntry(*this, Scope);
679 destroyOptimisticNormalEntry(*this, Scope);
688 llvm::BasicBlock *NormalEntry = CreateNormalEntry(*this, Scope);
716 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end());
724 if (Scope.hasBranchThroughs() ||
728 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup());
737 if (!Scope.hasBranchThroughs() && !HasFixups && !HasFallthrough &&
738 Scope.getNumBranchAfters() == 1) {
742 llvm::BasicBlock *BranchAfter = Scope.getBranchAfterBlock(0);
750 } else if (Scope.getNumBranchAfters() ||
775 for (unsigned I = 0, E = Scope.getNumBranchAfters(); I != E; ++I) {
776 Switch->addCase(Scope.getBranchAfterIndex(I),
777 Scope.getBranchAfterBlock(I));
960 EHCleanupScope &Scope =
962 BI->setSuccessor(0, CreateNormalEntry(*this, Scope));
970 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I));
971 assert(Scope.isNormalCleanup());
972 I = Scope.getEnclosingNormalCleanup();
977 Scope.addBranchAfter(Index, Dest.getBlock());
984 if (!Scope.addBranchThrough(Dest.getBlock()))
1046 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C));
1059 if (Scope.isNormalCleanup() &&
1061 Scope.setTestFlagInNormalCleanup();
1066 if (Scope.isEHCleanup() &&
1068 Scope.setTestFlagInEHCleanup();
1075 llvm::AllocaInst *var = Scope.getActiveFlag();
1078 Scope.setActiveFlag(var);
1102 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1103 assert(!Scope.isActive() && "double activation");
1107 Scope.setActive(true);
1114 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1115 assert(Scope.isActive() && "double deactivation");
1130 Scope.setActive(false);