Lines Matching refs:Scope

177   EHCleanupScope *Scope =
190 return Scope->getCleanupBuffer();
408 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
414 Old.strictlyEncloses(Scope.getEnclosingNormalCleanup());
448 EHCleanupScope &Scope) {
449 assert(Scope.isNormalCleanup());
450 llvm::BasicBlock *Entry = Scope.getNormalBlock();
453 Scope.setNormalBlock(Entry);
589 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
590 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups());
593 bool IsActive = Scope.isActive();
595 Scope.shouldTestFlagInNormalCleanup() ? Scope.getActiveFlag()
598 Scope.shouldTestFlagInEHCleanup() ? Scope.getActiveFlag()
603 llvm::BasicBlock *EHEntry = Scope.getCachedEHDispatchBlock();
604 assert(Scope.hasEHBranches() == (EHEntry != nullptr));
606 EHScopeStack::stable_iterator EHParent = Scope.getEnclosingEHScope();
611 unsigned FixupDepth = Scope.getFixupDepth();
615 bool HasExistingBranches = Scope.hasBranches();
631 assert(!Scope.isNormalCleanup() || !HasPrebranchedFallthrough ||
632 (Scope.getNormalBlock() &&
634 == Scope.getNormalBlock()));
637 if (Scope.isNormalCleanup() &&
644 if (Scope.isNormalCleanup() && HasPrebranchedFallthrough && !IsActive) {
651 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup());
663 llvm::BasicBlock *normalEntry = Scope.getNormalBlock();
672 destroyOptimisticNormalEntry(*this, Scope);
684 auto *CleanupSource = reinterpret_cast<char *>(Scope.getCleanupBuffer());
687 size_t CleanupSize = Scope.getCleanupSize();
700 if (Scope.isNormalCleanup())
702 if (Scope.isEHCleanup())
706 destroyOptimisticNormalEntry(*this, Scope);
714 destroyOptimisticNormalEntry(*this, Scope);
723 llvm::BasicBlock *NormalEntry = CreateNormalEntry(*this, Scope);
751 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end());
759 if (Scope.hasBranchThroughs() ||
763 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup());
772 if (!Scope.hasBranchThroughs() && !HasFixups && !HasFallthrough &&
773 Scope.getNumBranchAfters() == 1) {
785 llvm::BasicBlock *BranchAfter = Scope.getBranchAfterBlock(0);
793 } else if (Scope.getNumBranchAfters() ||
819 for (unsigned I = 0, E = Scope.getNumBranchAfters(); I != E; ++I) {
820 Switch->addCase(Scope.getBranchAfterIndex(I),
821 Scope.getBranchAfterBlock(I));
1024 EHCleanupScope &Scope =
1026 BI->setSuccessor(0, CreateNormalEntry(*this, Scope));
1034 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I));
1035 assert(Scope.isNormalCleanup());
1036 I = Scope.getEnclosingNormalCleanup();
1041 Scope.addBranchAfter(Index, Dest.getBlock());
1048 if (!Scope.addBranchThrough(Dest.getBlock()))
1110 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C));
1123 if (Scope.isNormalCleanup() &&
1125 Scope.setTestFlagInNormalCleanup();
1130 if (Scope.isEHCleanup() &&
1132 Scope.setTestFlagInEHCleanup();
1139 Address var = Scope.getActiveFlag();
1143 Scope.setActiveFlag(var);
1167 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1168 assert(!Scope.isActive() && "double activation");
1172 Scope.setActive(true);
1179 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1180 assert(Scope.isActive() && "double deactivation");
1195 Scope.setActive(false);