LLVM API Documentation

GlobalDCE.cpp File Reference

#include "llvm/Transforms/IPO.h"
#include "llvm/Constants.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/Compiler.h"
#include <set>

Include dependency graph for GlobalDCE.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "globaldce"

Functions

 STATISTIC (NumAliases,"Number of global aliases removed")
 STATISTIC (NumFunctions,"Number of functions removed")
 STATISTIC (NumVariables,"Number of global variables removed")
ModulePass * llvm::createGlobalDCEPass ()

Variables

static RegisterPass< GlobalDCE > X ("globaldce","Dead Global Elimination")


Define Documentation

#define DEBUG_TYPE   "globaldce"

Definition at line 18 of file GlobalDCE.cpp.


Function Documentation

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

STATISTIC ( NumFunctions  ,
"Number of functions removed"   
)

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


Variable Documentation

Definition at line 43 of file GlobalDCE.cpp.

char ID [static]

Definition at line 34 of file GlobalDCE.cpp.

RegisterPass<GlobalDCE> X("globaldce","Dead Global Elimination") [static]