LLVM 22.0.0git
llvm::MergeFunctionsPass Class Reference

Merge identical functions. More...

#include "llvm/Transforms/IPO/MergeFunctions.h"

Inheritance diagram for llvm::MergeFunctionsPass:
[legend]

Public Member Functions

LLVM_ABI 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 LLVM_ABI bool runOnModule (Module &M)
static LLVM_ABI 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.

Detailed Description

Merge identical functions.

Definition at line 27 of file MergeFunctions.h.

Member Function Documentation

◆ run()

PreservedAnalyses MergeFunctionsPass::run ( Module & M,
ModuleAnalysisManager & AM )

◆ runOnFunctions()

DenseMap< Function *, Function * > MergeFunctionsPass::runOnFunctions ( ArrayRef< Function * > F)
static

Definition at line 328 of file MergeFunctions.cpp.

References F.

◆ runOnModule()

bool MergeFunctionsPass::runOnModule ( Module & M)
static

Definition at line 318 of file MergeFunctions.cpp.

References llvm::collectUsedGlobalVariables().

Referenced by run().


The documentation for this class was generated from the following files: