LLVM  10.0.0svn
Macros | Functions
GlobalDCE.cpp File Reference
#include "llvm/Transforms/IPO/GlobalDCE.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Utils/CtorUtils.h"
#include "llvm/Transforms/Utils/GlobalStatus.h"
Include dependency graph for GlobalDCE.cpp:

Go to the source code of this file.


#define DEBUG_TYPE   "globaldce"


 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")
 INITIALIZE_PASS (GlobalDCELegacyPass, "globaldce", "Dead Global Elimination", false, false) ModulePass *llvm
static bool isEmptyFunction (Function *F)
 Returns true if F is effectively empty. More...

Macro Definition Documentation


#define DEBUG_TYPE   "globaldce"

Definition at line 30 of file GlobalDCE.cpp.

Function Documentation


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

Definition at line 70 of file GlobalDCE.cpp.

◆ isEmptyFunction()

static bool isEmptyFunction ( Function F)

◆ STATISTIC() [1/4]

STATISTIC ( NumAliases  ,
"Number of global aliases removed"   

◆ STATISTIC() [2/4]

STATISTIC ( NumFunctions  ,
"Number of functions removed"   

◆ STATISTIC() [3/4]

STATISTIC ( NumIFuncs  ,
"Number of indirect functions removed"   

◆ STATISTIC() [4/4]

STATISTIC ( NumVariables  ,
"Number of global variables removed"