Module pass that merges functions using stable function hashes.

Synopsis

Declared in <llvm/CodeGen/GlobalMergeFunctions.h>

class GlobalMergeFunc;

Description

Identifies and merges functions with matching hashes across modules to optimize binary size.

Member Functions

Name

Description

GlobalMergeFunc [constructor]

Construct a global merge function pass.

analyze

Analyze module to create stable function into LocalFunctionMap.

emitFunctionMap

Emit LocalFunctionMap into __llvm_merge section.

initializeMergerMode

Initialize the merger mode from module M and any available summary.

merge

Merge functions in the module using the given function map.

run

Run analysis and merging on module M.

Static Data Members

Name

Description

MergingInstanceSuffix

Suffix identifying the merged function that parameterizes constant values.

Created with MrDocs