|
LLVM 22.0.0git
|
#include "llvm/Transforms/IPO/GlobalDCE.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/TypeMetadataUtils.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Module.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/CommandLine.h"#include "llvm/Transforms/IPO.h"#include "llvm/Transforms/Utils/CtorUtils.h"#include "llvm/Transforms/Utils/GlobalStatus.h"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. | |
Variables | |
| static cl::opt< bool > | ClEnableVFE ("enable-vfe", cl::Hidden, cl::init(true), cl::desc("Enable virtual function elimination")) |
| #define DEBUG_TYPE "globaldce" |
Definition at line 33 of file GlobalDCE.cpp.
| INITIALIZE_PASS | ( | GlobalDCELegacyPass | , |
| "globaldce" | , | ||
| "Dead Global Elimination" | , | ||
| false | , | ||
| false | ) |
Definition at line 58 of file GlobalDCE.cpp.
References llvm::createGlobalDCEPass().
Returns true if F is effectively empty.
Definition at line 75 of file GlobalDCE.cpp.
References llvm::dyn_cast(), F, and I.
Referenced by llvm::GlobalDCEPass::run().
| 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" | ) |