clang 23.0.0git
clang::CIRGen::CIRGenFunction::RunCleanupsScope Class Reference

Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFunction.h"

Inheritance diagram for clang::CIRGen::CIRGenFunction::RunCleanupsScope:
[legend]

Public Member Functions

 RunCleanupsScope (CIRGenFunction &cgf)
 Enter a new cleanup scope.
 ~RunCleanupsScope ()
 Exit this cleanup scope, emitting any accumulated cleanups.
void forceCleanup (ArrayRef< mlir::Value * > valuesToReload={})
 Force the emission of cleanups now, instead of waiting until this object is destroyed.

Protected Attributes

bool performCleanup
bool oldDidCallStackSave
CIRGenFunctioncgf

Detailed Description

Enters a new scope for capturing cleanups, all of which will be executed once the scope is exited.

Definition at line 998 of file CIRGenFunction.h.

Constructor & Destructor Documentation

◆ RunCleanupsScope()

clang::CIRGen::CIRGenFunction::RunCleanupsScope::RunCleanupsScope ( CIRGenFunction & cgf)
inlineexplicit

Enter a new cleanup scope.

Definition at line 1014 of file CIRGenFunction.h.

References cgf, clang::CIRGen::CIRGenFunction::CIRGenFunction(), oldDidCallStackSave, performCleanup, and true.

◆ ~RunCleanupsScope()

clang::CIRGen::CIRGenFunction::RunCleanupsScope::~RunCleanupsScope ( )
inline

Exit this cleanup scope, emitting any accumulated cleanups.

Definition at line 1024 of file CIRGenFunction.h.

References forceCleanup(), and performCleanup.

Member Function Documentation

◆ forceCleanup()

Member Data Documentation

◆ cgf

◆ oldDidCallStackSave

bool clang::CIRGen::CIRGenFunction::RunCleanupsScope::oldDidCallStackSave
protected

Definition at line 1003 of file CIRGenFunction.h.

Referenced by RunCleanupsScope().

◆ performCleanup

bool clang::CIRGen::CIRGenFunction::RunCleanupsScope::performCleanup
protected

The documentation for this class was generated from the following file: