LLVM 20.0.0git
|
Optimize globals that never have their address taken. More...
#include "llvm/Transforms/IPO/GlobalOpt.h"
Public Member Functions | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &AM) |
Public Member Functions inherited from llvm::PassInfoMixin< GlobalOptPass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< GlobalOptPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Optimize globals that never have their address taken.
Definition at line 25 of file GlobalOpt.h.
PreservedAnalyses GlobalOptPass::run | ( | Module & | M, |
ModuleAnalysisManager & | AM | ||
) |
Definition at line 2722 of file GlobalOpt.cpp.
References llvm::PreservedAnalyses::all(), llvm::AnalysisManager< IRUnitT, ExtraArgTs >::clear(), DL, F, FAM, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), llvm::AnalysisManager< IRUnitT, ExtraArgTs >::invalidate(), llvm::PreservedAnalyses::none(), optimizeGlobalsInModule(), llvm::PreservedAnalyses::preserve(), and llvm::PreservedAnalyses::preserveSet().