LLVM API Documentation
#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>
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 DEBUG_TYPE "globaldce" |
Definition at line 18 of file GlobalDCE.cpp.
| STATISTIC | ( | NumVariables | , | |
| "Number of global variables removed" | ||||
| ) |
| STATISTIC | ( | NumFunctions | , | |
| "Number of functions removed" | ||||
| ) |
| STATISTIC | ( | NumAliases | , | |
| "Number of global aliases removed" | ||||
| ) |
| std::set<GlobalValue*> AliveGlobals |
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] |