Home
last modified time | relevance | path

Searched refs:EHStack (Results 1 – 25 of 37) sorted by relevance

12

/external/clang/lib/CodeGen/
DCGCleanup.cpp298 EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin()); in initFullExprCleanup()
329 for (unsigned I = 0, E = CGF.EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveAllBranchFixups()
331 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups()
357 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
384 if (!EHStack.getNumBranchFixups()) return; in ResolveBranchFixups()
386 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
392 for (unsigned I = 0, E = EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveBranchFixups()
394 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups()
417 EHStack.popNullFixups(); in ResolveBranchFixups()
424 while (EHStack.stable_begin() != Old) { in PopCleanupBlocks()
[all …]
DCGException.cpp361 EHScopeStack::stable_iterator cleanup = EHStack.stable_begin(); in EmitAnyExprToExn()
433 EHStack.pushTerminate(); in EmitStartEHSpec()
445 EHStack.pushTerminate(); in EmitStartEHSpec()
453 EHFilterScope *Filter = EHStack.pushFilter(NumExceptions); in EmitStartEHSpec()
512 EHStack.popTerminate(); in EmitEndEHSpec()
523 EHStack.popTerminate(); in EmitEndEHSpec()
530 EHFilterScope &filterScope = cast<EHFilterScope>(*EHStack.begin()); in EmitEndEHSpec()
532 EHStack.popFilter(); in EmitEndEHSpec()
544 EHCatchScope *CatchScope = EHStack.pushCatch(NumHandlers); in EnterCXXTryStmt()
582 if (si == EHStack.stable_end()) in getEHDispatchBlock()
[all …]
DCGObjCRuntime.cpp212 EHCatchScope *Catch = CGF.EHStack.pushCatch(Handlers.size()); in EmitTryCatchStmt()
247 CGF.EHStack.pushCleanup<CallObjCEndCatch>(NormalAndEHCleanup, in EmitTryCatchStmt()
341 CGF.EHStack.pushCleanup<CallSyncExit>(NormalAndEHCleanup, syncExitFn, lock); in EmitAtSynchronizedStmt()
DCGDecl.cpp1350 EHStack.pushCleanup<DestroyNRVOVariable>(cleanupKind, addr, in emitAutoVarTypeCleanup()
1378 EHStack.pushCleanup<DestroyObject>(cleanupKind, addr, type, destroyer, in emitAutoVarTypeCleanup()
1397 EHStack.pushCleanup<CallLifetimeEnd>(NormalEHLifetimeMarker, in EmitAutoVarCleanups()
1408 EHStack.pushCleanup<ExtendGCLifetime>(NormalCleanup, &D); in EmitAutoVarCleanups()
1419 EHStack.pushCleanup<CallCleanupFunction>(NormalAndEHCleanup, F, &Info, &D); in EmitAutoVarCleanups()
1471 EHStack.pushCleanup<CallStackRestore>(Kind, SPMem); in pushStackRestore()
1484 EHStack.pushCleanup<DestroyObject>( in pushLifetimeExtendedDestroy()
1841 EHStack.pushCleanup<ConsumeARCParameter>(getARCCleanupKind(), ArgVal, in EmitParmDecl()
DCGClass.cpp561 CGF.EHStack.pushCleanup<CallBaseDtor>(EHCleanup, BaseClassDecl, in EmitBaseInitializer()
1820 EHStack.pushCleanup<CallDtorDeleteConditional>( in EnterDtorCleanups()
1823 EHStack.pushCleanup<CallDtorDelete>(NormalAndEHCleanup); in EnterDtorCleanups()
1841 EHStack.pushCleanup<SanitizeDtorVTable>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1853 EHStack.pushCleanup<CallBaseDtor>(NormalAndEHCleanup, in EnterDtorCleanups()
1867 EHStack.pushCleanup<SanitizeDtorVTable>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1881 EHStack.pushCleanup<CallBaseDtor>(NormalAndEHCleanup, in EnterDtorCleanups()
1890 EHStack.pushCleanup<SanitizeDtorMembers>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1903 EHStack.pushCleanup<DestroyField>(cleanupKind, Field, in EnterDtorCleanups()
2385 EHStack.pushCleanup<CallDelegatingCtorDtor>(EHCleanup, in EmitDelegatingCXXConstructorCall()
[all …]
DCGExprCXX.cpp880 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer()
1071 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer()
1285 CallDeleteDuringNew *Cleanup = CGF.EHStack in EnterNewDeleteCleanup()
1303 CallDeleteDuringConditionalNew *Cleanup = CGF.EHStack in EnterNewDeleteCleanup()
1427 operatorDeleteCleanup = EHStack.stable_begin(); in EmitCXXNewExpr()
1540 EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, CompletePtr, in pushCallObjectDeleteCleanup()
1569 CGF.EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, in EmitObjectDelete()
1674 CGF.EHStack.pushCleanup<CallArrayDelete>(NormalAndEHCleanup, in EmitArrayDelete()
DCodeGenFunction.h299 EHScopeStack EHStack; variable
410 return EHStack.pushCleanup<T>(kind, A...); in pushFullExprCleanup()
417 EHStack.pushCleanupTuple<CleanupType>(kind, Saved); in pushFullExprCleanup()
501 CleanupStackDepth = CGF.EHStack.stable_begin(); in RunCleanupsScope()
520 return CGF.EHStack.stable_begin() != CleanupStackDepth; in requiresCleanups()
702 EHStack.getInnermostNormalCleanup(), in getJumpDestInCurrentScope()
1232 if (!EHStack.requiresLandingPad()) return nullptr; in getInvokeDest()
DCGExprAgg.cpp438 cleanup = CGF.EHStack.stable_begin(); in EmitArrayInit()
1210 cleanups.push_back(CGF.EHStack.stable_begin()); in VisitInitListExpr()
1295 cleanups.push_back(CGF.EHStack.stable_begin()); in VisitInitListExpr()
DCodeGenFunction.cpp304 bool HasCleanups = EHStack.stable_begin() != PrologueCleanupDepth; in FinishFunction()
306 HasCleanups && EHStack.containsOnlyLifetimeMarkers(PrologueCleanupDepth); in FinishFunction()
334 assert(EHStack.empty() && in FinishFunction()
838 PrologueCleanupDepth = EHStack.stable_begin(); in StartFunction()
DCGStmt.cpp381 if (!EHStack.empty()) in SimplifyForwardingBlocks()
467 if (EHStack.hasNormalCleanups() && CurLexicalScope) in EmitLabel()
481 Dest.setScopeDepth(EHStack.stable_begin()); in EmitLabel()
494 = CGF.EHStack.getInnermostNormalCleanup(); in rescopeLabels()
DCGObjC.cpp549 EHStack.pushCleanup<FinishARCDealloc>(getARCCleanupKind()); in StartObjCMethod()
1395 CGF.EHStack.pushCleanup<DestroyIvar>(cleanupKind, self, ivar, destroyer, in emitCXXDestructMethod()
2398 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup()
2400 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup()
3131 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt()
3134 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt()
DCGBlocks.cpp630 capture.setCleanup(CGF.EHStack.stable_begin()); in enterBlockScope()
1769 EHScopeStack::stable_iterator cleanupDepth = CGF.EHStack.stable_begin(); in emitDispose()
2283 EHStack.pushCleanup<CallBlockRelease>(NormalAndEHCleanup, in enterByrefCleanup()
/external/llvm-project/clang/lib/CodeGen/
DCGCleanup.cpp292 EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin()); in initFullExprCleanupWithFlag()
323 for (unsigned I = 0, E = CGF.EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveAllBranchFixups()
325 BranchFixup &Fixup = CGF.EHStack.getBranchFixup(I); in ResolveAllBranchFixups()
351 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
378 if (!EHStack.getNumBranchFixups()) return; in ResolveBranchFixups()
380 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
386 for (unsigned I = 0, E = EHStack.getNumBranchFixups(); I != E; ++I) { in ResolveBranchFixups()
388 BranchFixup &Fixup = EHStack.getBranchFixup(I); in ResolveBranchFixups()
411 EHStack.popNullFixups(); in ResolveBranchFixups()
421 while (EHStack.stable_begin() != Old) { in PopCleanupBlocks()
[all …]
DCGException.cpp387 EHScopeStack::stable_iterator cleanup = EHStack.stable_begin(); in EmitAnyExprToExn()
459 EHStack.pushTerminate(); in EmitStartEHSpec()
470 EHStack.pushTerminate(); in EmitStartEHSpec()
481 EHStack.pushTerminate(); in EmitStartEHSpec()
489 EHFilterScope *Filter = EHStack.pushFilter(NumExceptions); in EmitStartEHSpec()
548 EHStack.popTerminate(); in EmitEndEHSpec()
558 EHStack.popTerminate(); in EmitEndEHSpec()
569 EHStack.popTerminate(); in EmitEndEHSpec()
572 EHFilterScope &filterScope = cast<EHFilterScope>(*EHStack.begin()); in EmitEndEHSpec()
574 EHStack.popFilter(); in EmitEndEHSpec()
[all …]
DCGObjCRuntime.cpp189 EHCatchScope *Catch = CGF.EHStack.pushCatch(Handlers.size()); in EmitTryCatchStmt()
251 CGF.EHStack.pushCleanup<CallObjCEndCatch>(NormalAndEHCleanup, in EmitTryCatchStmt()
265 CGF.EHStack.pushCleanup<CatchRetScope>(NormalCleanup, CPI); in EmitTryCatchStmt()
347 CGF.EHStack.pushCleanup<CallSyncExit>(NormalAndEHCleanup, syncExitFn, lock); in EmitAtSynchronizedStmt()
DCGCoroutine.cpp504 auto old_top = CGF.EHStack.stable_begin(); in EmitGroAlloca()
506 auto top = CGF.EHStack.stable_begin(); in EmitGroAlloca()
509 for (auto b = CGF.EHStack.find(top), e = CGF.EHStack.find(old_top); in EmitGroAlloca()
605 EHStack.pushCleanup<CallCoroDelete>(NormalAndEHCleanup, S.getDeallocate()); in EmitCoroutineBody()
630 EHStack.pushCleanup<CallCoroEnd>(EHCleanup); in EmitCoroutineBody()
DCGDecl.cpp1614 EHStack.pushCleanup<CallLifetimeEnd>(NormalEHLifetimeMarker, in EmitAutoVarAlloca()
1983 EHStack.pushCleanup<DestroyNRVOVariableCXX>(cleanupKind, addr, type, dtor, in emitAutoVarTypeCleanup()
2008 EHStack.pushCleanup<DestroyNRVOVariableC>(cleanupKind, addr, in emitAutoVarTypeCleanup()
2021 EHStack.pushCleanup<DestroyObject>(cleanupKind, addr, type, destroyer, in emitAutoVarTypeCleanup()
2044 EHStack.pushCleanup<ExtendGCLifetime>(NormalCleanup, &D); in EmitAutoVarCleanups()
2055 EHStack.pushCleanup<CallCleanupFunction>(NormalAndEHCleanup, F, &Info, &D); in EmitAutoVarCleanups()
2117 EHStack.pushCleanup<CallStackRestore>(Kind, SPMem); in pushStackRestore()
2131 EHStack.pushCleanup<DestroyObject>( in pushLifetimeExtendedDestroy()
2152 EHStack.pushCleanup<ConditionalCleanupType>( in pushLifetimeExtendedDestroy()
2481 EHStack.stable_begin(); in EmitParmDecl()
[all …]
DCGClass.cpp595 CGF.EHStack.pushCleanup<CallBaseDtor>(EHCleanup, BaseClassDecl, in EmitBaseInitializer()
1811 EHStack.pushCleanup<CallDtorDeleteConditional>( in EnterDtorCleanups()
1821 EHStack.pushCleanup<CallDtorDelete>(NormalAndEHCleanup); in EnterDtorCleanups()
1840 EHStack.pushCleanup<SanitizeDtorVTable>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1852 EHStack.pushCleanup<CallBaseDtor>(NormalAndEHCleanup, in EnterDtorCleanups()
1866 EHStack.pushCleanup<SanitizeDtorVTable>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1880 EHStack.pushCleanup<CallBaseDtor>(NormalAndEHCleanup, in EnterDtorCleanups()
1889 EHStack.pushCleanup<SanitizeDtorMembers>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1902 EHStack.pushCleanup<DestroyField>(cleanupKind, Field, in EnterDtorCleanups()
2433 EHStack.pushCleanup<CallDelegatingCtorDtor>(EHCleanup, in EmitDelegatingCXXConstructorCall()
[all …]
DCGExprCXX.cpp1091 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer()
1258 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer()
1501 DirectCleanup *Cleanup = CGF.EHStack in EnterNewDeleteCleanup()
1532 ConditionalCleanup *Cleanup = CGF.EHStack in EnterNewDeleteCleanup()
1699 operatorDeleteCleanup = EHStack.stable_begin(); in EmitCXXNewExpr()
1865 EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, CompletePtr, in pushCallObjectDeleteCleanup()
1947 CGF.EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, in EmitObjectDelete()
2023 CGF.EHStack.pushCleanup<CallArrayDelete>(NormalAndEHCleanup, in EmitArrayDelete()
DCGExprAgg.cpp291 LifetimeEndBlock = CGF.EHStack.stable_begin(); in withReturnValueSlot()
535 cleanup = CGF.EHStack.stable_begin(); in EmitArrayInit()
1357 Cleanups.push_back(CGF.EHStack.stable_begin()); in VisitLambdaExpr()
1661 addCleanup(CGF.EHStack.stable_begin()); in VisitInitListExpr()
1740 addCleanup(CGF.EHStack.stable_begin()); in VisitInitListExpr()
1814 cleanup = CGF.EHStack.stable_begin(); in VisitArrayInitLoopExpr()
DCodeGenFunction.h535 EHScopeStack EHStack;
688 return EHStack.pushCleanup<T>(kind, A...);
695 EHStack.pushCleanupTuple<CleanupType>(kind, Saved);
805 CleanupStackDepth = CGF.EHStack.stable_begin();
822 return CGF.EHStack.stable_begin() != CleanupStackDepth;
1062 EHStack.getInnermostNormalCleanup(),
1917 if (!EHStack.requiresLandingPad()) return nullptr;
DCGStmt.cpp489 if (!EHStack.empty()) in SimplifyForwardingBlocks()
575 if (EHStack.hasNormalCleanups() && CurLexicalScope) in EmitLabel()
589 Dest.setScopeDepth(EHStack.stable_begin()); in EmitLabel()
611 = CGF.EHStack.getInnermostNormalCleanup(); in rescopeLabels()
DCodeGenFunction.cpp364 bool HasCleanups = EHStack.stable_begin() != PrologueCleanupDepth; in FinishFunction()
366 HasCleanups && EHStack.containsOnlyLifetimeMarkers(PrologueCleanupDepth); in FinishFunction()
405 assert(EHStack.empty() && in FinishFunction()
1078 PrologueCleanupDepth = EHStack.stable_begin(); in StartFunction()
DCGObjC.cpp794 EHStack.pushCleanup<FinishARCDealloc>(getARCCleanupKind()); in StartObjCMethod()
1647 CGF.EHStack.pushCleanup<DestroyIvar>(cleanupKind, self, ivar, destroyer, in emitCXXDestructMethod()
2811 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup()
2813 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup()
3577 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt()
3580 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt()
DItaniumCXXABI.cpp2459 CGF.EHStack.pushCleanup<CallGuardAbort>(EHCleanup, guard); in EmitGuardedInit()
4322 CGF.EHStack.pushCleanup<CallEndCatch>(NormalAndEHCleanup, EndMightThrow); in CallBeginCatch()
4488 CGF.EHStack.pushTerminate(); in InitCatchParam()
4499 CGF.EHStack.popTerminate(); in InitCatchParam()
4619 CGF.EHStack.pushCleanup<CatchRetScope>( in emitBeginCatch()

12