Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCleanup.cpp356 CGF.EHStack.clearFixups(); in ResolveAllBranchFixups()
385 assert(EHStack.hasNormalCleanups() && in ResolveBranchFixups()
416 EHStack.popNullFixups(); in ResolveBranchFixups()
778 EHStack.popCleanup(); in PopCleanupBlock()
794 EHStack.popCleanup(); in PopCleanupBlock()
925 EHStack.popCleanup(); in PopCleanupBlock()
993 assert(EHStack.hasNormalCleanups() || EHStack.getNumBranchFixups() == 0); in PopCleanupBlock()
1021 EHStack.pushTerminate(); in PopCleanupBlock()
1039 EHStack.popTerminate(); in PopCleanupBlock()
1181 EHScope &scope = *EHStack.find(i); in IsUsedAsEHCleanup()
[all …]
H A DCGException.cpp483 EHStack.pushTerminate(); in EmitStartEHSpec()
585 EHStack.popTerminate(); in EmitEndEHSpec()
601 EHStack.popFilter(); in EmitEndEHSpec()
753 assert(!EHStack.empty()); in getInvokeDestImpl()
806 EHScope &innermostEHScope = *EHStack.find(EHStack.getInnermostEHScope()); in EmitLandingPad()
845 for (EHScopeStack::iterator I = EHStack.begin(), E = EHStack.end(); I != E; in EmitLandingPad()
1177 EHStack.popCatch(); in popCatchScope()
1189 EHStack.popCatch(); in ExitCXXTryStmt()
1201 EHStack.popCatch(); in ExitCXXTryStmt()
2213 EHStack.popCatch(); in ExitSEHTryStmt()
[all …]
H A 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()
608 EHStack.pushCleanup<CallCoroDelete>(NormalAndEHCleanup, S.getDeallocate()); in EmitCoroutineBody()
643 EHStack.pushCleanup<CallCoroEnd>(EHCleanup); in EmitCoroutineBody()
H A 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()
H A DCGDecl.cpp1620 EHStack.pushCleanup<CallLifetimeEnd>(NormalEHLifetimeMarker, in EmitAutoVarAlloca()
1989 EHStack.pushCleanup<DestroyNRVOVariableCXX>(cleanupKind, addr, type, dtor, in emitAutoVarTypeCleanup()
2014 EHStack.pushCleanup<DestroyNRVOVariableC>(cleanupKind, addr, in emitAutoVarTypeCleanup()
2027 EHStack.pushCleanup<DestroyObject>(cleanupKind, addr, type, destroyer, in emitAutoVarTypeCleanup()
2050 EHStack.pushCleanup<ExtendGCLifetime>(NormalCleanup, &D); in EmitAutoVarCleanups()
2061 EHStack.pushCleanup<CallCleanupFunction>(NormalAndEHCleanup, F, &Info, &D); in EmitAutoVarCleanups()
2123 EHStack.pushCleanup<CallStackRestore>(Kind, SPMem); in pushStackRestore()
2137 EHStack.pushCleanup<DestroyObject>( in pushLifetimeExtendedDestroy()
2158 EHStack.pushCleanup<ConditionalCleanupType>( in pushLifetimeExtendedDestroy()
2492 EHStack.stable_begin(); in EmitParmDecl()
[all …]
H A DCGClass.cpp592 CGF.EHStack.pushCleanup<CallBaseDtor>(EHCleanup, BaseClassDecl, in EmitBaseInitializer()
1809 EHStack.pushCleanup<CallDtorDeleteConditional>( in EnterDtorCleanups()
1819 EHStack.pushCleanup<CallDtorDelete>(NormalAndEHCleanup); in EnterDtorCleanups()
1838 EHStack.pushCleanup<SanitizeDtorVTable>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1850 EHStack.pushCleanup<CallBaseDtor>(NormalAndEHCleanup, in EnterDtorCleanups()
1864 EHStack.pushCleanup<SanitizeDtorVTable>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1878 EHStack.pushCleanup<CallBaseDtor>(NormalAndEHCleanup, in EnterDtorCleanups()
1887 EHStack.pushCleanup<SanitizeDtorMembers>(NormalAndEHCleanup, DD); in EnterDtorCleanups()
1900 EHStack.pushCleanup<DestroyField>(cleanupKind, Field, in EnterDtorCleanups()
2431 EHStack.pushCleanup<CallDelegatingCtorDtor>(EHCleanup, in EmitDelegatingCXXConstructorCall()
[all …]
H A DCGExprCXX.cpp1097 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer()
1266 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer()
1509 DirectCleanup *Cleanup = CGF.EHStack in EnterNewDeleteCleanup()
1540 ConditionalCleanup *Cleanup = CGF.EHStack in EnterNewDeleteCleanup()
1707 operatorDeleteCleanup = EHStack.stable_begin(); in EmitCXXNewExpr()
1873 EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, CompletePtr, in pushCallObjectDeleteCleanup()
1955 CGF.EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, in EmitObjectDelete()
2031 CGF.EHStack.pushCleanup<CallArrayDelete>(NormalAndEHCleanup, in EmitArrayDelete()
H A DCGExprAgg.cpp291 LifetimeEndBlock = CGF.EHStack.stable_begin(); in withReturnValueSlot()
537 cleanup = CGF.EHStack.stable_begin(); in EmitArrayInit()
1362 Cleanups.push_back(CGF.EHStack.stable_begin()); in VisitLambdaExpr()
1667 addCleanup(CGF.EHStack.stable_begin()); in VisitInitListExpr()
1746 addCleanup(CGF.EHStack.stable_begin()); in VisitInitListExpr()
1822 cleanup = CGF.EHStack.stable_begin(); in VisitArrayInitLoopExpr()
H A DCodeGenFunction.cpp78 EHStack.setCGF(this); in CodeGenFunction()
365 bool HasCleanups = EHStack.stable_begin() != PrologueCleanupDepth; in FinishFunction()
367 HasCleanups && EHStack.containsOnlyLifetimeMarkers(PrologueCleanupDepth); in FinishFunction()
406 assert(EHStack.empty() && in FinishFunction()
1099 PrologueCleanupDepth = EHStack.stable_begin(); in StartFunction()
H A DCodeGenFunction.h581 EHScopeStack EHStack;
736 return EHStack.pushCleanup<T>(kind, A...);
743 EHStack.pushCleanupTuple<CleanupType>(kind, Saved);
853 CleanupStackDepth = CGF.EHStack.stable_begin();
870 return CGF.EHStack.stable_begin() != CleanupStackDepth;
1110 EHStack.getInnermostNormalCleanup(),
1961 if (!EHStack.requiresLandingPad()) return nullptr;
H A DCGStmt.cpp509 if (!EHStack.empty()) in SimplifyForwardingBlocks()
595 if (EHStack.hasNormalCleanups() && CurLexicalScope) in EmitLabel()
609 Dest.setScopeDepth(EHStack.stable_begin()); in EmitLabel()
631 = CGF.EHStack.getInnermostNormalCleanup(); in rescopeLabels()
H A DCGObjC.cpp795 EHStack.pushCleanup<FinishARCDealloc>(getARCCleanupKind()); in StartObjCMethod()
1649 CGF.EHStack.pushCleanup<DestroyIvar>(cleanupKind, self, ivar, destroyer, in emitCXXDestructMethod()
2850 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup()
2852 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup()
3632 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt()
3635 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt()
H A DItaniumCXXABI.cpp2539 CGF.EHStack.pushCleanup<CallGuardAbort>(EHCleanup, guard); in EmitGuardedInit()
4458 CGF.EHStack.pushCleanup<CallEndCatch>(NormalAndEHCleanup, EndMightThrow); in CallBeginCatch()
4625 CGF.EHStack.pushTerminate(); in InitCatchParam()
4636 CGF.EHStack.popTerminate(); in InitCatchParam()
4756 CGF.EHStack.pushCleanup<CatchRetScope>( in emitBeginCatch()
H A DCGBlocks.cpp2315 EHScopeStack::stable_iterator cleanupDepth = CGF.EHStack.stable_begin(); in emitDispose()
2345 EHScopeStack::stable_iterator cleanupDepth = CGF.EHStack.stable_begin(); in emitDispose()
2842 EHStack.pushCleanup<CallBlockRelease>(Kind, Addr, Flags, LoadBlockVarAddr, in enterByrefCleanup()
H A DMicrosoftCXXABI.cpp904 CGF.EHStack.pushCleanup<CatchRetScope>(NormalCleanup, CPI); in emitBeginCatch()
910 CGF.EHStack.pushCleanup<CatchRetScope>(NormalCleanup, CPI); in emitBeginCatch()
2596 CGF.EHStack.pushCleanup<ResetGuardBit>(EHCleanup, GuardAddr, GuardNum); in EmitGuardedInit()
2642 CGF.EHStack.pushCleanup<CallInitThreadAbort>(EHCleanup, GuardAddr); in EmitGuardedInit()
H A DCGCall.cpp2832 EHStack.pushCleanup<CopyBackSwiftError>(NormalCleanup, temp, arg); in EmitFunctionProlog()
4324 args.addArgCleanupDeactivation(EHStack.getInnermostEHScope(), IsActive); in EmitCallArg()
5356 for (auto it = EHStack.find(CurrentCleanupScopeDepth); it != EHStack.end(); in EmitCall()
H A DCGOpenMPRuntime.cpp597 CGF.EHStack.pushCleanup<CleanupTy>(NormalAndEHCleanup, PrePostAction); in operator ()()
1054 CGF.EHStack.pushTerminate(); in EmitBody()
1058 CGF.EHStack.popTerminate(); in EmitBody()
1489 if (!CGF.EHStack.requiresLandingPad() || !CGF.getLangOpts().Exceptions || in getThreadID()
12053 CGF.EHStack.pushCleanup<DoacrossCleanupTy>(NormalAndEHCleanup, FiniRTLFn, in emitDoacrossInit()
12215 CGF.EHStack.pushCleanup<OMPAllocateCleanupTy>( in getAddressOfLocalVariable()
H A DCGOpenMPRuntimeGPU.cpp3626 CGF.EHStack.pushCleanup<GlobalizationScope>(NormalAndEHCleanup); in emitFunctionProlog()
H A DCGObjCMac.cpp4688 CGF.EHStack.pushCleanup<PerformFragileFinally>(NormalAndEHCleanup, &S, in EmitTryOrSynchronizedStmt()
H A DCGStmtOpenMP.cpp1654 CGF.EHStack.pushCleanup<OMPAllocateCleanupTy>(NormalAndEHCleanup, FreeCI); in getAddressOfLocalVariable()