LLVM 22.0.0git
|
Pass to remove unused function declarations. More...
#include "llvm/Transforms/IPO/GlobalDCE.h"
Public Member Functions | |
GlobalDCEPass (bool InLTOPostLink=false) | |
LLVM_ABI PreservedAnalyses | run (Module &M, ModuleAnalysisManager &) |
LLVM_ABI 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 38 of file GlobalDCE.h.
|
inline |
Definition at line 40 of file GlobalDCE.h.
void GlobalDCEPass::printPipeline | ( | raw_ostream & | OS, |
function_ref< StringRef(StringRef)> | MapClassName2PassName ) |
Definition at line 448 of file GlobalDCE.cpp.
References printPipeline().
Referenced by printPipeline().
PreservedAnalyses GlobalDCEPass::run | ( | Module & | M, |
ModuleAnalysisManager & | MAM ) |
Definition at line 277 of file GlobalDCE.cpp.
References llvm::PreservedAnalyses::all(), llvm::CallingConv::C, Changed, llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::GlobalValue::eraseFromParent(), F, llvm::ConstantPointerNull::get(), llvm::GlobalValue::getComdat(), isEmptyFunction(), llvm::isSafeToDestroyConstant(), MAM, llvm::PreservedAnalyses::none(), llvm::optimizeGlobalCtorsList(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::Constant::removeDeadConstantUsers(), and llvm::replaceRelativePointerUsersWithZero().