LLVM 22.0.0git
SjLjEHPrepare.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "sjlj-eh-prepare"

Functions

 STATISTIC (NumInvokes, "Number of invokes replaced")
 STATISTIC (NumSpilled, "Number of registers live across unwind edges")
 INITIALIZE_PASS (SjLjEHPrepare, DEBUG_TYPE, "Prepare SjLj exceptions", false, false) FunctionPass *llvm
static void MarkBlocksLiveIn (BasicBlock *BB, SmallPtrSetImpl< BasicBlock * > &LiveBBs)
 MarkBlocksLiveIn - Insert BB and all of its predecessors into LiveBBs until we reach blocks we've already seen.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "sjlj-eh-prepare"

Definition at line 35 of file SjLjEHPrepare.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( SjLjEHPrepare ,
DEBUG_TYPE ,
"Prepare SjLj exceptions" ,
false ,
false  )

Definition at line 98 of file SjLjEHPrepare.cpp.

References const, llvm::createSjLjEHPreparePass(), and DEBUG_TYPE.

◆ MarkBlocksLiveIn()

void MarkBlocksLiveIn ( BasicBlock * BB,
SmallPtrSetImpl< BasicBlock * > & LiveBBs )
static

MarkBlocksLiveIn - Insert BB and all of its predecessors into LiveBBs until we reach blocks we've already seen.

Definition at line 148 of file SjLjEHPrepare.cpp.

References llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::SmallPtrSetImpl< PtrType >::insert_range(), and llvm::inverse_depth_first().

◆ STATISTIC() [1/2]

STATISTIC ( NumInvokes ,
"Number of invokes replaced"  )

◆ STATISTIC() [2/2]

STATISTIC ( NumSpilled ,
"Number of registers live across unwind edges"  )