LLVM 20.0.0git
|
A pass that merges duplicate global constants into a single constant. More...
#include "llvm/Transforms/IPO/ConstantMerge.h"
Public Member Functions | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &) |
Public Member Functions inherited from llvm::PassInfoMixin< ConstantMergePass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< ConstantMergePass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
A pass that merges duplicate global constants into a single constant.
Definition at line 29 of file ConstantMerge.h.
PreservedAnalyses ConstantMergePass::run | ( | Module & | M, |
ModuleAnalysisManager & | |||
) |
Definition at line 248 of file ConstantMerge.cpp.
References llvm::PreservedAnalyses::all(), mergeConstants(), and llvm::PreservedAnalyses::none().