LLVM: lib/Transforms/IPO/GlobalDCE.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "globaldce"
Functions
INITIALIZE_PASS (GlobalDCELegacyPass, "globaldce", "Dead Global Elimination", false, false) ModulePass *llvm
STATISTIC (NumAliases, "Number of global aliases removed")
STATISTIC (NumFunctions, "Number of functions removed")
STATISTIC (NumIFuncs, "Number of indirect functions removed")
STATISTIC (NumVariables, "Number of global variables removed")
STATISTIC (NumVFuncs, "Number of virtual functions removed")
static bool isEmptyFunction (Function *F)
Returns true if F is effectively empty.

DEBUG_TYPE

#define DEBUG_TYPE "globaldce"

INITIALIZE_PASS()

INITIALIZE_PASS ( GlobalDCELegacyPass ,
"globaldce" ,
"Dead Global Elimination" ,
false ,
false )

isEmptyFunction()

STATISTIC() [1/5]

STATISTIC ( NumAliases ,
"Number of global aliases removed" )

STATISTIC() [2/5]

STATISTIC ( NumFunctions ,
"Number of functions removed" )

STATISTIC() [3/5]

STATISTIC ( NumIFuncs ,
"Number of indirect functions removed" )

STATISTIC() [4/5]

STATISTIC ( NumVariables ,
"Number of global variables removed" )

STATISTIC() [5/5]

STATISTIC ( NumVFuncs ,
"Number of virtual functions removed" )

ClEnableVFE

cl::opt< bool > ClEnableVFE("enable-vfe", cl::Hidden, cl::init(true), cl::desc("Enable virtual function elimination")) ( "enable-vfe" , cl::Hidden , cl::init(true) , cl::desc("Enable virtual function elimination") ) static