Lines Matching refs:GlobalVariable
44 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues()
57 static bool IsBetterCanonical(const GlobalVariable &A, in IsBetterCanonical()
58 const GlobalVariable &B) { in IsBetterCanonical()
68 static bool hasMetadataOtherThanDebugLoc(const GlobalVariable *GV) { in hasMetadataOtherThanDebugLoc()
77 static void copyDebugLocMetadata(const GlobalVariable *From, in copyDebugLocMetadata()
78 GlobalVariable *To) { in copyDebugLocMetadata()
85 static Align getAlign(GlobalVariable *GV) { in getAlign()
91 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal()
103 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable()
114 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace()
140 DenseMap<Constant *, GlobalVariable *> CMap; in mergeConstants()
142 SmallVector<std::pair<GlobalVariable *, GlobalVariable *>, 32> in mergeConstants()
154 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in mergeConstants()
180 GlobalVariable *&Slot = CMap[Init]; in mergeConstants()
197 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in mergeConstants()
212 GlobalVariable *Slot = Found->second; in mergeConstants()
229 GlobalVariable *Old = SameContentReplacements[i].first; in mergeConstants()
230 GlobalVariable *New = SameContentReplacements[i].second; in mergeConstants()