LLVM 20.0.0git
|
Merge identical functions. More...
#include "llvm/Transforms/IPO/MergeFunctions.h"
Public Member Functions | |
PreservedAnalyses | run (Module &M, ModuleAnalysisManager &AM) |
Public Member Functions inherited from llvm::PassInfoMixin< MergeFunctionsPass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Static Public Member Functions | |
static bool | runOnModule (Module &M) |
static DenseMap< Function *, Function * > | runOnFunctions (ArrayRef< Function * > F) |
Static Public Member Functions inherited from llvm::PassInfoMixin< MergeFunctionsPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Merge identical functions.
Definition at line 26 of file MergeFunctions.h.
PreservedAnalyses MergeFunctionsPass::run | ( | Module & | M, |
ModuleAnalysisManager & | AM | ||
) |
Definition at line 309 of file MergeFunctions.cpp.
References llvm::PreservedAnalyses::all(), llvm::PreservedAnalyses::none(), and runOnModule().
|
static |
Definition at line 328 of file MergeFunctions.cpp.
References F.
Definition at line 318 of file MergeFunctions.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::collectUsedGlobalVariables(), and llvm::SmallVectorTemplateCommon< T, typename >::end().
Referenced by run().