LLVM API Documentation

PruneEH.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/CallGraphSCCPass.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/Intrinsics.h"
#include "llvm/Instructions.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/CFG.h"
#include <set>
#include <algorithm>

Include dependency graph for PruneEH.cpp:

Go to the source code of this file.

Functions

ModulePassllvm::createPruneEHPass ()

Variables

Statistic NumRemoved ("prune-eh","Number of invokes removed")
Statistic NumUnreach ("prune-eh","Number of noreturn calls optimized")
RegisterOpt< PruneEH > X ("prune-eh","Remove unused exception handling info")


Variable Documentation

std::set<CallGraphNode*> DoesNotReturn

DoesNotReturn - This set contains all of the functions which we have determined cannot return normally (but might unwind).

Definition at line 41 of file PruneEH.cpp.

std::set<CallGraphNode*> DoesNotUnwind

DoesNotUnwind - This set contains all of the functions which we have determined cannot unwind.

Definition at line 37 of file PruneEH.cpp.

Statistic NumRemoved("prune-eh","Number of invokes removed") [static]

Statistic NumUnreach("prune-eh","Number of noreturn calls optimized") [static]

RegisterOpt<PruneEH> X("prune-eh","Remove unused exception handling info") [static]