Lines Matching defs:Scope

166   EHCleanupScope *Scope =
178 Scope->setLifetimeMarker();
190 return Scope->getCleanupBuffer();
417 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
418 HadBranches |= Scope.hasBranches();
424 Old.strictlyEncloses(Scope.getEnclosingNormalCleanup());
499 EHCleanupScope &Scope) {
500 assert(Scope.isNormalCleanup());
501 llvm::BasicBlock *Entry = Scope.getNormalBlock();
504 Scope.setNormalBlock(Entry);
641 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
642 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups());
647 if (ForDeactivation && (Scope.isNormalCleanup() || !getLangOpts().EHAsynch)) {
651 bool IsActive = Scope.isActive();
653 Scope.shouldTestFlagInNormalCleanup() ? Scope.getActiveFlag()
656 Scope.shouldTestFlagInEHCleanup() ? Scope.getActiveFlag()
661 llvm::BasicBlock *EHEntry = Scope.getCachedEHDispatchBlock();
662 assert(Scope.hasEHBranches() == (EHEntry != nullptr));
664 EHScopeStack::stable_iterator EHParent = Scope.getEnclosingEHScope();
669 unsigned FixupDepth = Scope.getFixupDepth();
673 bool HasExistingBranches = Scope.hasBranches();
690 assert(!Scope.isNormalCleanup() || !HasPrebranchedFallthrough ||
691 (Scope.getNormalBlock() &&
693 == Scope.getNormalBlock()));
696 if (Scope.isNormalCleanup() &&
703 if (Scope.isNormalCleanup() && HasPrebranchedFallthrough &&
714 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup());
726 llvm::BasicBlock *normalEntry = Scope.getNormalBlock();
735 destroyOptimisticNormalEntry(*this, Scope);
749 auto *CleanupSource = reinterpret_cast<char *>(Scope.getCleanupBuffer());
753 size_t CleanupSize = Scope.getCleanupSize();
766 if (Scope.isNormalCleanup())
768 if (Scope.isEHCleanup())
772 bool IsEHa = getLangOpts().EHAsynch && !Scope.isLifetimeMarker();
788 destroyOptimisticNormalEntry(*this, Scope);
789 Scope.MarkEmitted();
805 destroyOptimisticNormalEntry(*this, Scope);
806 Scope.MarkEmitted();
815 llvm::BasicBlock *NormalEntry = CreateNormalEntry(*this, Scope);
851 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end());
859 if (Scope.hasBranchThroughs() ||
863 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup());
877 if (!Scope.hasBranchThroughs() && !HasFixups && !HasFallthrough &&
878 !currentFunctionUsesSEHTry() && Scope.getNumBranchAfters() == 1) {
890 llvm::BasicBlock *BranchAfter = Scope.getBranchAfterBlock(0);
898 } else if (Scope.getNumBranchAfters() ||
926 for (unsigned I = 0, E = Scope.getNumBranchAfters(); I != E; ++I) {
927 Switch->addCase(Scope.getBranchAfterIndex(I),
928 Scope.getBranchAfterBlock(I));
942 Scope.MarkEmitted();
1140 EHCleanupScope &Scope =
1142 BI->setSuccessor(0, CreateNormalEntry(*this, Scope));
1150 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I));
1151 assert(Scope.isNormalCleanup());
1152 I = Scope.getEnclosingNormalCleanup();
1157 Scope.addBranchAfter(Index, Dest.getBlock());
1164 if (!Scope.addBranchThrough(Dest.getBlock()))
1207 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C));
1220 if (Scope.isNormalCleanup()) {
1221 Scope.setTestFlagInNormalCleanup();
1226 if (Scope.isEHCleanup() &&
1228 Scope.setTestFlagInEHCleanup();
1236 Address var = Scope.getActiveFlag();
1241 Scope.setActiveFlag(var);
1242 Scope.AddAuxAllocas(AllocaTracker.Take());
1266 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1267 assert(!Scope.isActive() && "double activation");
1271 Scope.setActive(true);
1278 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1279 assert(Scope.isActive() && "double deactivation");
1293 Scope.setActive(false);