LLVM 19.0.0git
Public Member Functions | List of all members
llvm::EscapeEnumerator Class Reference

EscapeEnumerator - This is a little algorithm to find all escape points from a function so that "finally"-style code can be inserted. More...

#include "llvm/Transforms/Utils/EscapeEnumerator.h"

Public Member Functions

 EscapeEnumerator (Function &F, const char *N="cleanup", bool HandleExceptions=true, DomTreeUpdater *DTU=nullptr)
 
IRBuilderNext ()
 

Detailed Description

EscapeEnumerator - This is a little algorithm to find all escape points from a function so that "finally"-style code can be inserted.

In addition to finding the existing return and unwind instructions, it also (if necessary) transforms any call instructions into invokes and sends them to a landing pad.

Definition at line 29 of file EscapeEnumerator.h.

Constructor & Destructor Documentation

◆ EscapeEnumerator()

llvm::EscapeEnumerator::EscapeEnumerator ( Function F,
const char N = "cleanup",
bool  HandleExceptions = true,
DomTreeUpdater DTU = nullptr 
)
inline

Definition at line 41 of file EscapeEnumerator.h.

References F.

Member Function Documentation

◆ Next()

IRBuilder * EscapeEnumerator::Next ( )

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