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()
156 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in mergeConstants()
182 GlobalVariable *&Slot = CMap[Init]; in mergeConstants()
199 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in mergeConstants()
214 GlobalVariable *Slot = Found->second; in mergeConstants()
231 GlobalVariable *Old = SameContentReplacements[i].first; in mergeConstants()
232 GlobalVariable *New = SameContentReplacements[i].second; in mergeConstants()