Lines Matching refs:EHStack

301   EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());  in initFullExprCleanupWithFlag()
332 for (unsigned I = 0, E = CGF.EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveAllBranchFixups()
334 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups()
360 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
387 if (!EHStack.getNumBranchFixups()) return; in ResolveBranchFixups()
389 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
395 for (unsigned I = 0, E = EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveBranchFixups()
397 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups()
420 EHStack.popNullFixups(); in ResolveBranchFixups()
430 while (EHStack.stable_begin() != Old) { in PopCleanupBlocks()
431 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks()
497 EHStack.pushCopyOfCleanup(Header.getKind(), in PopCleanupBlocks()
652 assert(!EHStack.empty() && "cleanup stack is empty!"); in PopCleanupBlock()
653 assert(isa<EHCleanupScope>(*EHStack.begin()) && "top not a cleanup!"); in PopCleanupBlock()
654 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlock()
655 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups()); in PopCleanupBlock()
677 bool HasFixups = EHStack.getNumBranchFixups() != FixupDepth; in PopCleanupBlock()
716 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
738 EHStack.popCleanup(); // safe because there are no fixups in PopCleanupBlock()
739 assert(EHStack.getNumBranchFixups() == 0 || in PopCleanupBlock()
740 EHStack.hasNormalCleanups()); in PopCleanupBlock()
772 EHStack.popCleanup(); in PopCleanupBlock()
780 EHStack.popCleanup(); in PopCleanupBlock()
816 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end()); in PopCleanupBlock()
828 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
900 EHStack.popCleanup(); in PopCleanupBlock()
901 assert(EHStack.hasNormalCleanups() == HasEnclosingCleanups); in PopCleanupBlock()
911 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
913 BranchFixup &Fixup = EHStack.getBranchFixup(I); in PopCleanupBlock()
962 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
964 EHStack.getBranchFixup(I).OptimisticBranchBlock = NewNormalEntry; in PopCleanupBlock()
968 assert(EHStack.hasNormalCleanups() || EHStack.getNumBranchFixups() == 0); in PopCleanupBlock()
996 EHStack.pushTerminate(); in PopCleanupBlock()
1014 EHStack.popTerminate(); in PopCleanupBlock()
1026 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in isObviouslyBranchWithoutCleanups()
1031 EHStack.getInnermostActiveNormalCleanup(); in isObviouslyBranchWithoutCleanups()
1036 if (TopCleanup == EHStack.stable_end() || in isObviouslyBranchWithoutCleanups()
1051 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in EmitBranchThroughCleanup()
1062 TopCleanup = EHStack.getInnermostActiveNormalCleanup(); in EmitBranchThroughCleanup()
1067 if (TopCleanup == EHStack.stable_end() || in EmitBranchThroughCleanup()
1076 BranchFixup &Fixup = EHStack.addBranchFixup(); in EmitBranchThroughCleanup()
1095 cast<EHCleanupScope>(*EHStack.find(TopCleanup)); in EmitBranchThroughCleanup()
1104 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I)); in EmitBranchThroughCleanup()
1126 static bool IsUsedAsNormalCleanup(EHScopeStack &EHStack, in IsUsedAsNormalCleanup() argument
1129 if (cast<EHCleanupScope>(*EHStack.find(C)).getNormalBlock()) in IsUsedAsNormalCleanup()
1134 I = EHStack.getInnermostNormalCleanup(); in IsUsedAsNormalCleanup()
1137 EHCleanupScope &S = cast<EHCleanupScope>(*EHStack.find(I)); in IsUsedAsNormalCleanup()
1145 static bool IsUsedAsEHCleanup(EHScopeStack &EHStack, in IsUsedAsEHCleanup() argument
1148 if (EHStack.find(cleanup)->hasEHBranches()) in IsUsedAsEHCleanup()
1153 i = EHStack.getInnermostEHScope(); i != cleanup; ) { in IsUsedAsEHCleanup()
1156 EHScope &scope = *EHStack.find(i); in IsUsedAsEHCleanup()
1180 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C)); in SetupCleanupBlockActivation()
1194 (isActivatedInConditional || IsUsedAsNormalCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1201 (isActivatedInConditional || IsUsedAsEHCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1236 assert(C != EHStack.stable_end() && "activating bottom of stack?"); in ActivateCleanupBlock()
1237 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in ActivateCleanupBlock()
1248 assert(C != EHStack.stable_end() && "deactivating bottom of stack?"); in DeactivateCleanupBlock()
1249 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in DeactivateCleanupBlock()
1254 if (C == EHStack.stable_begin() && in DeactivateCleanupBlock()