|
clang 24.0.0git
|
Captures cleanups for variables whose lifetime ends in a region owned by an enclosing op rather than at the end of a cir.cleanup.scope, so that they can be emitted into that region later. More...
#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFunction.h"
Classes | |
| class | CaptureScope |
| An RAII class that suppresses cir.cleanup.scope creation for cleanups pushed onto the EH stack while such a variable is being emitted and instead captures these cleanups so that they can be emitted into the owning op's cleanup region later. More... | |
Public Member Functions | |
| CapturedCleanups (CIRGenFunction &cgf, bool active) | |
| void | emitIntoCleanupRegion (mlir::Location loc) |
| Emit the captured cleanups into the current insertion point, which must be inside the owning op's cleanup region. | |
| void | emitAsNestedScopes (mlir::Location loc) |
| Emit the captured cleanups at the current insertion point as nested cir.cleanup.scope operations, so that an exception from one of them still runs the ones captured before it. | |
Captures cleanups for variables whose lifetime ends in a region owned by an enclosing op rather than at the end of a cir.cleanup.scope, so that they can be emitted into that region later.
Examples for uses are:
Definition at line 1566 of file CIRGenFunction.h.
|
inline |
Definition at line 1572 of file CIRGenFunction.h.
References clang::CIRGen::CIRGenFunction::CIRGenFunction(), and clang::CIRGen::CIRGenFunction::ehStack.
Referenced by clang::CIRGen::CIRGenFunction::CapturedCleanups::CaptureScope::CaptureScope().
|
inline |
Emit the captured cleanups at the current insertion point as nested cir.cleanup.scope operations, so that an exception from one of them still runs the ones captured before it.
Definition at line 1608 of file CIRGenFunction.h.
|
inline |
Emit the captured cleanups into the current insertion point, which must be inside the owning op's cleanup region.
Definition at line 1600 of file CIRGenFunction.h.