LLVM 20.0.0git
|
#include "llvm/CodeGen/GlobalMerge.h"
Public Attributes | |
unsigned | MaxOffset = 0 |
unsigned | MinSize = 0 |
bool | GroupByUse = true |
bool | IgnoreSingleUse = true |
bool | MergeConst = false |
bool | MergeExternal = true |
Whether we should merge global variables that have external linkage. | |
bool | MergeConstantGlobals = false |
Whether we should merge constant global variables. | |
bool | SizeOnly = false |
Whether we should try to optimize for size only. | |
Definition at line 18 of file GlobalMerge.h.
Definition at line 26 of file GlobalMerge.h.
Definition at line 27 of file GlobalMerge.h.
unsigned llvm::GlobalMergeOptions::MaxOffset = 0 |
Definition at line 23 of file GlobalMerge.h.
bool llvm::GlobalMergeOptions::MergeConst = false |
Definition at line 28 of file GlobalMerge.h.
bool llvm::GlobalMergeOptions::MergeConstantGlobals = false |
Whether we should merge constant global variables.
Definition at line 32 of file GlobalMerge.h.
Whether we should merge global variables that have external linkage.
Definition at line 30 of file GlobalMerge.h.
unsigned llvm::GlobalMergeOptions::MinSize = 0 |
Definition at line 25 of file GlobalMerge.h.
bool llvm::GlobalMergeOptions::SizeOnly = false |
Whether we should try to optimize for size only.
Currently, this applies a dead simple heuristic: only consider globals used in minsize functions for merging. FIXME: This could learn about optsize, and be used in the cost model.
Definition at line 37 of file GlobalMerge.h.