|
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. | |
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 1504 of file CIRGenFunction.h.
|
inline |
Definition at line 1510 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 into the current insertion point, which must be inside the owning op's cleanup region.
Definition at line 1538 of file CIRGenFunction.h.