Lines Matching refs:EHStack

297   EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin());  in initFullExprCleanupWithFlag()
328 for (unsigned I = 0, E = CGF.EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveAllBranchFixups()
330 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups()
356 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
383 if (!EHStack.getNumBranchFixups()) return; in ResolveBranchFixups()
385 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
391 for (unsigned I = 0, E = EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveBranchFixups()
393 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups()
416 EHStack.popNullFixups(); in ResolveBranchFixups()
426 while (EHStack.stable_begin() != Old) { in PopCleanupBlocks()
427 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlocks()
493 EHStack.pushCopyOfCleanup(Header.getKind(), in PopCleanupBlocks()
648 assert(!EHStack.empty() && "cleanup stack is empty!"); in PopCleanupBlock()
649 assert(isa<EHCleanupScope>(*EHStack.begin()) && "top not a cleanup!"); in PopCleanupBlock()
650 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.begin()); in PopCleanupBlock()
651 assert(Scope.getFixupDepth() <= EHStack.getNumBranchFixups()); in PopCleanupBlock()
673 bool HasFixups = EHStack.getNumBranchFixups() != FixupDepth; in PopCleanupBlock()
712 EHScope &enclosing = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
734 EHStack.popCleanup(); // safe because there are no fixups in PopCleanupBlock()
735 assert(EHStack.getNumBranchFixups() == 0 || in PopCleanupBlock()
736 EHStack.hasNormalCleanups()); in PopCleanupBlock()
778 EHStack.popCleanup(); in PopCleanupBlock()
794 EHStack.popCleanup(); in PopCleanupBlock()
838 (Scope.getEnclosingNormalCleanup() != EHStack.stable_end()); in PopCleanupBlock()
850 EHScope &S = *EHStack.find(Scope.getEnclosingNormalCleanup()); in PopCleanupBlock()
925 EHStack.popCleanup(); in PopCleanupBlock()
926 assert(EHStack.hasNormalCleanups() == HasEnclosingCleanups); in PopCleanupBlock()
936 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
938 BranchFixup &Fixup = EHStack.getBranchFixup(I); in PopCleanupBlock()
987 for (unsigned I = FixupDepth, E = EHStack.getNumBranchFixups(); in PopCleanupBlock()
989 EHStack.getBranchFixup(I).OptimisticBranchBlock = NewNormalEntry; in PopCleanupBlock()
993 assert(EHStack.hasNormalCleanups() || EHStack.getNumBranchFixups() == 0); in PopCleanupBlock()
1021 EHStack.pushTerminate(); in PopCleanupBlock()
1039 EHStack.popTerminate(); in PopCleanupBlock()
1051 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in isObviouslyBranchWithoutCleanups()
1056 EHStack.getInnermostActiveNormalCleanup(); in isObviouslyBranchWithoutCleanups()
1061 if (TopCleanup == EHStack.stable_end() || in isObviouslyBranchWithoutCleanups()
1076 assert(Dest.getScopeDepth().encloses(EHStack.stable_begin()) in EmitBranchThroughCleanup()
1087 TopCleanup = EHStack.getInnermostActiveNormalCleanup(); in EmitBranchThroughCleanup()
1092 if (TopCleanup == EHStack.stable_end() || in EmitBranchThroughCleanup()
1101 BranchFixup &Fixup = EHStack.addBranchFixup(); in EmitBranchThroughCleanup()
1120 cast<EHCleanupScope>(*EHStack.find(TopCleanup)); in EmitBranchThroughCleanup()
1129 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(I)); in EmitBranchThroughCleanup()
1151 static bool IsUsedAsNormalCleanup(EHScopeStack &EHStack, in IsUsedAsNormalCleanup() argument
1154 if (cast<EHCleanupScope>(*EHStack.find(C)).getNormalBlock()) in IsUsedAsNormalCleanup()
1159 I = EHStack.getInnermostNormalCleanup(); in IsUsedAsNormalCleanup()
1162 EHCleanupScope &S = cast<EHCleanupScope>(*EHStack.find(I)); in IsUsedAsNormalCleanup()
1170 static bool IsUsedAsEHCleanup(EHScopeStack &EHStack, in IsUsedAsEHCleanup() argument
1173 if (EHStack.find(cleanup)->hasEHBranches()) in IsUsedAsEHCleanup()
1178 i = EHStack.getInnermostEHScope(); i != cleanup; ) { in IsUsedAsEHCleanup()
1181 EHScope &scope = *EHStack.find(i); in IsUsedAsEHCleanup()
1205 EHCleanupScope &Scope = cast<EHCleanupScope>(*CGF.EHStack.find(C)); in SetupCleanupBlockActivation()
1219 (isActivatedInConditional || IsUsedAsNormalCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1226 (isActivatedInConditional || IsUsedAsEHCleanup(CGF.EHStack, C))) { in SetupCleanupBlockActivation()
1261 assert(C != EHStack.stable_end() && "activating bottom of stack?"); in ActivateCleanupBlock()
1262 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in ActivateCleanupBlock()
1273 assert(C != EHStack.stable_end() && "deactivating bottom of stack?"); in DeactivateCleanupBlock()
1274 EHCleanupScope &Scope = cast<EHCleanupScope>(*EHStack.find(C)); in DeactivateCleanupBlock()
1279 if (C == EHStack.stable_begin() && in DeactivateCleanupBlock()