Lines Matching full:constants
1 //===- ConstantMerge.cpp - Merge duplicate global constants ---------------===//
10 // constants together into a single constant that is shared. This is useful
11 // because some passes (ie TraceValues) insert a lot of string constants into
14 // Algorithm: ConstantMerge is designed to build up a map of available constants
24 #include "llvm/IR/Constants.h"
42 STATISTIC(NumIdenticalMerged, "Number of identical global constants merged");
94 // Only process constants with initializers in the default address space. in isUnmergeableGlobal()
140 // Map unique constants to globals. in mergeConstants()
150 // constants together may allow us to merge other constants together if the in mergeConstants()
151 // second level constants have initializers which point to the globals that in mergeConstants()
154 // Find the canonical constants others will be merged with. in mergeConstants()