LLVM: lib/CodeGen/GlobalMerge.cpp File Reference (original ) (raw )Go to the source code of this file.
Variables
static cl::opt < bool >
EnableGlobalMerge ("enable-global-merge", cl::Hidden, cl::desc ("Enable the global merge pass"), cl::init(true))
static cl::opt < unsigned >
GlobalMergeMaxOffset ("global-merge -max-offset", cl::Hidden, cl::desc ("Set maximum offset for global merge pass"), cl::init(0))
static cl::opt < bool >
GlobalMergeGroupByUse ("global-merge -group-by-use", cl::Hidden, cl::desc ("Improve global merge pass to look at uses"), cl::init(true))
static cl::opt < bool >
GlobalMergeAllConst ("global-merge -all-const", cl::Hidden, cl::desc ("Merge all const globals without looking at uses"), cl::init(false))
static cl::opt < bool >
GlobalMergeIgnoreSingleUse ("global-merge -ignore-single-use", cl::Hidden, cl::desc ("Improve global merge pass to ignore globals only used alone"), cl::init(true))
static cl::opt < bool >
EnableGlobalMergeOnConst ("global-merge -on-const", cl::Hidden, cl::desc ("Enable global merge pass on constants"), cl::init(false))
static cl::opt < cl::boolOrDefault >
EnableGlobalMergeOnExternal ("global-merge -on-external", cl::Hidden, cl::desc ("Enable global merge pass on external linkage"))
static cl::opt < unsigned >
GlobalMergeMinDataSize ("global-merge -min-data -size", cl::desc ("The minimum size in bytes of each global " "that should considered in merging."), cl::init(0), cl::Hidden)
◆ DEBUG_TYPE#define DEBUG_TYPE "global-merge"
◆ isSpecialMachOSection()◆ STATISTIC()
STATISTIC
(
NumMerged
,
"Number of globals merged"
)
◆ EnableGlobalMerge
cl::opt < bool > EnableGlobalMerge("enable-global-merge", cl::Hidden, cl::desc ("Enable the global merge pass"), cl::init(true)) ( "enable-global-merge" , cl::Hidden , cl::desc ("Enable the global merge pass") , cl::init(true) )
static
◆ EnableGlobalMergeOnConst◆ EnableGlobalMergeOnExternal◆ GlobalMergeAllConst◆ GlobalMergeGroupByUse◆ GlobalMergeIgnoreSingleUse◆ GlobalMergeMaxOffset◆ GlobalMergeMinDataSize
cl::opt < unsigned > GlobalMergeMinDataSize("global-merge -min-data -size", cl::desc ("The minimum size in bytes of each global " "that should considered in merging."), cl::init(0), cl::Hidden) ( "global-merge -min-data -size" , cl::desc ("The minimum size in bytes of each global " "that should considered in merging.") , cl::init(0) , cl::Hidden )
static