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 <set>

Include dependency graph for GlobalDCE.cpp:

Go to the source code of this file.

Functions

ModulePassllvm::createGlobalDCEPass ()

Variables

Statistic NumFunctions ("globaldce","Number of functions removed")
Statistic NumVariables ("globaldce","Number of global variables removed")
RegisterOpt< GlobalDCE > X ("globaldce","Dead Global Elimination")


Variable Documentation

std::set<GlobalValue*> AliveGlobals

Definition at line 37 of file GlobalDCE.cpp.

Statistic NumFunctions("globaldce","Number of functions removed") [static]

Statistic NumVariables("globaldce","Number of global variables removed") [static]

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