| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGCleanup.cpp | 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() [all …]
|
| H A D | CGException.cpp | 399 EHScopeStack::stable_iterator cleanup = EHStack.stable_begin(); in EmitAnyExprToExn() 471 EHStack.pushTerminate(); in EmitStartEHSpec() 483 EHStack.pushTerminate(); in EmitStartEHSpec() 494 EHStack.pushTerminate(); in EmitStartEHSpec() 515 EHFilterScope *Filter = EHStack.pushFilter(NumExceptions); in EmitStartEHSpec() 573 if (CD->isNothrow() && !EHStack.empty()) in EmitEndEHSpec() 574 EHStack.popTerminate(); in EmitEndEHSpec() 584 !EHStack.empty() /* possible empty when under async exceptions */) { in EmitEndEHSpec() 585 EHStack.popTerminate(); in EmitEndEHSpec() 596 EHStack.popTerminate(); in EmitEndEHSpec() [all …]
|
| H A D | CGCoroutine.cpp | 504 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 D | CGObjCRuntime.cpp | 189 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 D | CGDecl.cpp | 1617 EHStack.pushCleanup<CallLifetimeEnd>(NormalEHLifetimeMarker, in EmitAutoVarAlloca() 1986 EHStack.pushCleanup<DestroyNRVOVariableCXX>(cleanupKind, addr, type, dtor, in emitAutoVarTypeCleanup() 2011 EHStack.pushCleanup<DestroyNRVOVariableC>(cleanupKind, addr, in emitAutoVarTypeCleanup() 2024 EHStack.pushCleanup<DestroyObject>(cleanupKind, addr, type, destroyer, in emitAutoVarTypeCleanup() 2047 EHStack.pushCleanup<ExtendGCLifetime>(NormalCleanup, &D); in EmitAutoVarCleanups() 2058 EHStack.pushCleanup<CallCleanupFunction>(NormalAndEHCleanup, F, &Info, &D); in EmitAutoVarCleanups() 2120 EHStack.pushCleanup<CallStackRestore>(Kind, SPMem); in pushStackRestore() 2134 EHStack.pushCleanup<DestroyObject>( in pushLifetimeExtendedDestroy() 2155 EHStack.pushCleanup<ConditionalCleanupType>( in pushLifetimeExtendedDestroy() 2485 EHStack.stable_begin(); in EmitParmDecl() [all …]
|
| H A D | CGClass.cpp | 595 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 …]
|
| H A D | CGExprCXX.cpp | 1094 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer() 1263 Cleanup = EHStack.stable_begin(); in EmitNewArrayInitializer() 1506 DirectCleanup *Cleanup = CGF.EHStack in EnterNewDeleteCleanup() 1537 ConditionalCleanup *Cleanup = CGF.EHStack in EnterNewDeleteCleanup() 1704 operatorDeleteCleanup = EHStack.stable_begin(); in EmitCXXNewExpr() 1870 EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, CompletePtr, in pushCallObjectDeleteCleanup() 1952 CGF.EHStack.pushCleanup<CallObjectDelete>(NormalAndEHCleanup, in EmitObjectDelete() 2028 CGF.EHStack.pushCleanup<CallArrayDelete>(NormalAndEHCleanup, in EmitArrayDelete()
|
| H A D | CGExprAgg.cpp | 291 LifetimeEndBlock = CGF.EHStack.stable_begin(); in withReturnValueSlot() 535 cleanup = CGF.EHStack.stable_begin(); in EmitArrayInit() 1358 Cleanups.push_back(CGF.EHStack.stable_begin()); in VisitLambdaExpr() 1663 addCleanup(CGF.EHStack.stable_begin()); in VisitInitListExpr() 1742 addCleanup(CGF.EHStack.stable_begin()); in VisitInitListExpr() 1816 cleanup = CGF.EHStack.stable_begin(); in VisitArrayInitLoopExpr()
|
| H A D | CodeGenFunction.cpp | 78 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() 1091 PrologueCleanupDepth = EHStack.stable_begin(); in StartFunction()
|
| H A D | CodeGenFunction.h | 581 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 D | CGStmt.cpp | 506 if (!EHStack.empty()) in SimplifyForwardingBlocks() 592 if (EHStack.hasNormalCleanups() && CurLexicalScope) in EmitLabel() 606 Dest.setScopeDepth(EHStack.stable_begin()); in EmitLabel() 628 = CGF.EHStack.getInnermostNormalCleanup(); in rescopeLabels()
|
| H A D | CGObjC.cpp | 795 EHStack.pushCleanup<FinishARCDealloc>(getARCCleanupKind()); in StartObjCMethod() 1648 CGF.EHStack.pushCleanup<DestroyIvar>(cleanupKind, self, ivar, destroyer, in emitCXXDestructMethod() 2848 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup() 2850 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, Ptr); in EmitObjCAutoreleasePoolCleanup() 3626 EHStack.pushCleanup<CallObjCAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt() 3629 EHStack.pushCleanup<CallObjCMRRAutoreleasePoolObject>(NormalCleanup, token); in EmitObjCAutoreleasePoolStmt()
|
| H A D | ItaniumCXXABI.cpp | 2525 CGF.EHStack.pushCleanup<CallGuardAbort>(EHCleanup, guard); in EmitGuardedInit() 4418 CGF.EHStack.pushCleanup<CallEndCatch>(NormalAndEHCleanup, EndMightThrow); in CallBeginCatch() 4584 CGF.EHStack.pushTerminate(); in InitCatchParam() 4595 CGF.EHStack.popTerminate(); in InitCatchParam() 4715 CGF.EHStack.pushCleanup<CatchRetScope>( in emitBeginCatch()
|
| H A D | CGBlocks.cpp | 2332 EHScopeStack::stable_iterator cleanupDepth = CGF.EHStack.stable_begin(); in emitDispose() 2362 EHScopeStack::stable_iterator cleanupDepth = CGF.EHStack.stable_begin(); in emitDispose() 2871 EHStack.pushCleanup<CallBlockRelease>(Kind, Addr, Flags, LoadBlockVarAddr, in enterByrefCleanup()
|
| H A D | MicrosoftCXXABI.cpp | 904 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 D | CGCall.cpp | 2826 EHStack.pushCleanup<CopyBackSwiftError>(NormalCleanup, temp, arg); in EmitFunctionProlog() 4317 args.addArgCleanupDeactivation(EHStack.getInnermostEHScope(), IsActive); in EmitCallArg() 5349 for (auto it = EHStack.find(CurrentCleanupScopeDepth); it != EHStack.end(); in EmitCall()
|
| H A D | CGOpenMPRuntime.cpp | 597 CGF.EHStack.pushCleanup<CleanupTy>(NormalAndEHCleanup, PrePostAction); in operator ()() 1050 CGF.EHStack.pushTerminate(); in EmitBody() 1054 CGF.EHStack.popTerminate(); in EmitBody() 1485 if (!CGF.EHStack.requiresLandingPad() || !CGF.getLangOpts().Exceptions || in getThreadID() 11893 CGF.EHStack.pushCleanup<DoacrossCleanupTy>(NormalAndEHCleanup, FiniRTLFn, in emitDoacrossInit() 12054 CGF.EHStack.pushCleanup<OMPAllocateCleanupTy>( in getAddressOfLocalVariable()
|
| H A D | CGOpenMPRuntimeGPU.cpp | 4222 CGF.EHStack.pushCleanup<GlobalizationScope>(NormalAndEHCleanup); in emitFunctionProlog()
|
| H A D | CGObjCMac.cpp | 4688 CGF.EHStack.pushCleanup<PerformFragileFinally>(NormalAndEHCleanup, &S, in EmitTryOrSynchronizedStmt()
|
| H A D | CGStmtOpenMP.cpp | 1646 CGF.EHStack.pushCleanup<OMPAllocateCleanupTy>(NormalAndEHCleanup, FreeCI); in getAddressOfLocalVariable()
|