LLVM  8.0.1
Macros | Functions | Variables
PruneEH.cpp File Reference
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
#include "llvm/Analysis/EHPersonalities.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/IPO.h"
#include <algorithm>
Include dependency graph for PruneEH.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "prune-eh"
 

Functions

 STATISTIC (NumRemoved, "Number of invokes removed")
 
 STATISTIC (NumUnreach, "Number of noreturn calls optimized")
 
static bool SimplifyFunction (Function *F, CallGraph &CG)
 
static void DeleteBasicBlock (BasicBlock *BB, CallGraph &CG)
 DeleteBasicBlock - remove the specified basic block from the program, updating the callgraph to reflect any now-obsolete edges due to calls that exist in the BB. More...
 
 INITIALIZE_PASS_BEGIN (PruneEH, "prune-eh", "Remove unused exception handling info", false, false) INITIALIZE_PASS_END(PruneEH
 
static bool runImpl (CallGraphSCC &SCC, CallGraph &CG)
 

Variables

prune eh
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "prune-eh"

Definition at line 34 of file PruneEH.cpp.

Function Documentation

◆ DeleteBasicBlock()

static void DeleteBasicBlock ( BasicBlock BB,
CallGraph CG 
)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( PruneEH  ,
"prune-eh ,
"Remove unused exception handling info ,
false  ,
false   
)

◆ runImpl()

static bool runImpl ( CallGraphSCC SCC,
CallGraph CG 
)
static

◆ SimplifyFunction()

static bool SimplifyFunction ( Function F,
CallGraph CG 
)
static

◆ STATISTIC() [1/2]

STATISTIC ( NumRemoved  ,
"Number of invokes removed"   
)

◆ STATISTIC() [2/2]

STATISTIC ( NumUnreach  ,
"Number of noreturn calls optimized"   
)

Variable Documentation

◆ eh

prune eh

Definition at line 58 of file PruneEH.cpp.