Lines Matching refs:GlobalVariable
46 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues()
59 static bool IsBetterCanonical(const GlobalVariable &A, in IsBetterCanonical()
60 const GlobalVariable &B) { in IsBetterCanonical()
70 static bool hasMetadataOtherThanDebugLoc(const GlobalVariable *GV) { in hasMetadataOtherThanDebugLoc()
79 static void copyDebugLocMetadata(const GlobalVariable *From, in copyDebugLocMetadata()
80 GlobalVariable *To) { in copyDebugLocMetadata()
87 static Align getAlign(GlobalVariable *GV) { in getAlign()
93 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal()
105 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable()
116 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace()
142 DenseMap<Constant *, GlobalVariable *> CMap; in mergeConstants()
144 SmallVector<std::pair<GlobalVariable *, GlobalVariable *>, 32> in mergeConstants()
158 GlobalVariable *GV = &*GVI++; in mergeConstants()
185 GlobalVariable *&Slot = CMap[Init]; in mergeConstants()
204 GlobalVariable *GV = &*GVI++; in mergeConstants()
220 GlobalVariable *Slot = Found->second; in mergeConstants()
237 GlobalVariable *Old = SameContentReplacements[i].first; in mergeConstants()
238 GlobalVariable *New = SameContentReplacements[i].second; in mergeConstants()