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 unsigned getAlignment(GlobalVariable *GV) { in getAlignment()
95 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable()
106 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace()
132 DenseMap<Constant *, GlobalVariable *> CMap; in mergeConstants()
134 SmallVector<std::pair<GlobalVariable *, GlobalVariable *>, 32> in mergeConstants()
148 GlobalVariable *GV = &*GVI++; in mergeConstants()
179 GlobalVariable *&Slot = CMap[Init]; in mergeConstants()
198 GlobalVariable *GV = &*GVI++; in mergeConstants()
218 GlobalVariable *Slot = Found->second; in mergeConstants()
235 GlobalVariable *Old = SameContentReplacements[i].first; in mergeConstants()
236 GlobalVariable *New = SameContentReplacements[i].second; in mergeConstants()