Lines Matching defs:Scope

161   EHCleanupScope *Scope =
174 return Scope->getCleanupBuffer();
378 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
384 Old.strictlyEncloses(Scope.getEnclosingNormalCleanup());
391 EHCleanupScope &Scope) {
392 assert(Scope.isNormalCleanup());
393 llvm::BasicBlock *Entry = Scope.getNormalBlock();
396 Scope.setNormalBlock(Entry);
538 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin());
539 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups());
542 bool IsActive = Scope.isActive();
544 Scope.shouldTestFlagInNormalCleanup() ? Scope.getActiveFlag() : 0;
546 Scope.shouldTestFlagInEHCleanup() ? Scope.getActiveFlag() : 0;
550 llvm::BasicBlock *EHEntry = Scope.getCachedEHDispatchBlock();
551 assert(Scope.hasEHBranches() == (EHEntry != 0));
553 EHScopeStack::stable_iterator EHParent = Scope.getEnclosingEHScope();
558 unsigned FixupDepth = Scope.getFixupDepth();
562 bool HasExistingBranches = Scope.hasBranches();
578 assert(!Scope.isNormalCleanup() || !HasPrebranchedFallthrough ||
579 (Scope.getNormalBlock() &&
581 == Scope.getNormalBlock()));
584 if (Scope.isNormalCleanup() &&
591 if (Scope.isNormalCleanup() && HasPrebranchedFallthrough && !IsActive) {
598 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup());
610 llvm::BasicBlock *normalEntry = Scope.getNormalBlock();
619 destroyOptimisticNormalEntry(*this, Scope);
630 CleanupBuffer.reserve(Scope.getCleanupSize());
632 Scope.getCleanupBuffer(), Scope.getCleanupSize());
633 CleanupBuffer.set_size(Scope.getCleanupSize());
638 if (Scope.isNormalCleanup())
640 if (Scope.isEHCleanup())
644 destroyOptimisticNormalEntry(*this, Scope);
652 destroyOptimisticNormalEntry(*this, Scope);
661 llvm::BasicBlock *NormalEntry = CreateNormalEntry(*this, Scope);
689 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end());
697 if (Scope.hasBranchThroughs() ||
701 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup());
710 if (!Scope.hasBranchThroughs() && !HasFixups && !HasFallthrough &&
711 Scope.getNumBranchAfters() == 1) {
715 llvm::BasicBlock *BranchAfter = Scope.getBranchAfterBlock(0);
723 } else if (Scope.getNumBranchAfters() ||
748 for (unsigned I = 0, E = Scope.getNumBranchAfters(); I != E; ++I) {
749 Switch->addCase(Scope.getBranchAfterIndex(I),
750 Scope.getBranchAfterBlock(I));
927 EHCleanupScope &Scope =
929 BI->setSuccessor(0, CreateNormalEntry(*this, Scope));
937 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I));
938 assert(Scope.isNormalCleanup());
939 I = Scope.getEnclosingNormalCleanup();
944 Scope.addBranchAfter(Index, Dest.getBlock());
951 if (!Scope.addBranchThrough(Dest.getBlock()))
1013 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C));
1026 if (Scope.isNormalCleanup() &&
1028 Scope.setTestFlagInNormalCleanup();
1033 if (Scope.isEHCleanup() &&
1035 Scope.setTestFlagInEHCleanup();
1042 llvm::AllocaInst *var = Scope.getActiveFlag();
1045 Scope.setActiveFlag(var);
1069 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1070 assert(!Scope.isActive() && "double activation");
1074 Scope.setActive(true);
1081 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C));
1082 assert(Scope.isActive() && "double deactivation");
1097 Scope.setActive(false);