LLVM 20.0.0git
|
Pass to remove unused function declarations. More...
#include "llvm/Transforms/IPO/GlobalDCE.h"
Public Member Functions | |
GlobalDCEPass (bool InLTOPostLink=false) | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &) |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Public Member Functions inherited from llvm::PassInfoMixin< GlobalDCEPass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< GlobalDCEPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Pass to remove unused function declarations.
Definition at line 36 of file GlobalDCE.h.
|
inline |
Definition at line 38 of file GlobalDCE.h.
void GlobalDCEPass::printPipeline | ( | raw_ostream & | OS, |
function_ref< StringRef(StringRef)> | MapClassName2PassName | ||
) |
Definition at line 420 of file GlobalDCE.cpp.
References OS, and printPipeline().
Referenced by printPipeline().
PreservedAnalyses GlobalDCEPass::run | ( | Module & | M, |
ModuleAnalysisManager & | MAM | ||
) |
Definition at line 249 of file GlobalDCE.cpp.
References llvm::PreservedAnalyses::all(), llvm::CallingConv::C, llvm::GlobalValue::eraseFromParent(), F, llvm::ConstantPointerNull::get(), llvm::GlobalValue::getComdat(), isEmptyFunction(), llvm::isSafeToDestroyConstant(), llvm::PreservedAnalyses::none(), llvm::optimizeGlobalCtorsList(), llvm::Constant::removeDeadConstantUsers(), and llvm::replaceRelativePointerUsersWithZero().