clang
19.0.0git
|
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More...
#include "/home/runner/work/llvm/llvm/repo/clang/lib/CodeGen/CodeGenFunction.h"
Public Member Functions | |
RunCleanupsScope (CodeGenFunction &CGF) | |
Enter a new cleanup scope. More... | |
~RunCleanupsScope () | |
Exit this cleanup scope, emitting any accumulated cleanups. More... | |
bool | requiresCleanups () const |
Determine whether this scope requires any cleanups. More... | |
void | ForceCleanup (std::initializer_list< llvm::Value ** > ValuesToReload={}) |
Force the emission of cleanups now, instead of waiting until this object is destroyed. More... | |
Protected Attributes | |
bool | PerformCleanup |
CodeGenFunction & | CGF |
Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited.
Definition at line 969 of file CodeGenFunction.h.
|
inlineexplicit |
Enter a new cleanup scope.
Definition at line 986 of file CodeGenFunction.h.
References CGF, clang::CodeGen::CodeGenFunction::CurrentCleanupScopeDepth, clang::CodeGen::CodeGenFunction::EHStack, clang::CodeGen::CodeGenFunction::LifetimeExtendedCleanupStack, and clang::CodeGen::EHScopeStack::stable_begin().
|
inline |
Exit this cleanup scope, emitting any accumulated cleanups.
Definition at line 998 of file CodeGenFunction.h.
References ForceCleanup(), and PerformCleanup.
|
inline |
Force the emission of cleanups now, instead of waiting until this object is destroyed.
ValuesToReload | - A list of values that need to be available at the insertion point after cleanup emission. If cleanup emission created a shared cleanup block, these value pointers will be rewritten. Otherwise, they not will be modified. |
Definition at line 1014 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitConstructorBody(), clang::CodeGen::CodeGenFunction::EmitDestructorBody(), clang::CodeGen::CodeGenFunction::LexicalScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::GenerateDestroyHelperFunction(), and ~RunCleanupsScope().
|
inline |
Determine whether this scope requires any cleanups.
Definition at line 1004 of file CodeGenFunction.h.
References CGF, clang::CodeGen::CodeGenFunction::EHStack, and clang::CodeGen::EHScopeStack::stable_begin().
Referenced by emitCXXDestructMethod().
|
protected |
Definition at line 982 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), clang::CodeGen::CodeGenFunction::LexicalScope::ForceCleanup(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::isGlobalVarCaptured(), clang::CodeGen::CodeGenFunction::LexicalScope::LexicalScope(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::Privatize(), requiresCleanups(), clang::CodeGen::CodeGenFunction::LexicalScope::rescopeLabels(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::restoreMap(), RunCleanupsScope(), and clang::CodeGen::CodeGenFunction::LexicalScope::~LexicalScope().
|
protected |
Definition at line 975 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::LexicalScope::addLabel(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::addPrivate(), clang::CodeGen::CodeGenFunction::LexicalScope::~LexicalScope(), clang::CodeGen::CodeGenFunction::OMPPrivateScope::~OMPPrivateScope(), and ~RunCleanupsScope().