ΒΆllvm::Pass* createGlobalMergePass(
    const llvm::TargetMachine* TM,
    unsigned int MaximalOffset,
    bool OnlyOptimizeForSize = false,
    bool MergeExternalByDefault = false)

Description

GlobalMerge - This pass merges internal (by default) globals into structs to enable reuse of a base pointer by indexed addressing modes. It can also be configured to focus on size optimizations only.

Declared at: llvm/include/llvm/CodeGen/Passes.h:411

Parameters

const llvm::TargetMachine* TM
unsigned int MaximalOffset
bool OnlyOptimizeForSize = false
bool MergeExternalByDefault = false