Lines Matching refs:GlobalVariable
45 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues()
58 static bool IsBetterCanonical(const GlobalVariable &A, in IsBetterCanonical()
59 const GlobalVariable &B) { in IsBetterCanonical()
69 static bool hasMetadataOtherThanDebugLoc(const GlobalVariable *GV) { in hasMetadataOtherThanDebugLoc()
78 static void copyDebugLocMetadata(const GlobalVariable *From, in copyDebugLocMetadata()
79 GlobalVariable *To) { in copyDebugLocMetadata()
86 static Align getAlign(GlobalVariable *GV) { in getAlign()
92 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal()
104 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable()
115 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace()
141 DenseMap<Constant *, GlobalVariable *> CMap; in mergeConstants()
143 SmallVector<std::pair<GlobalVariable *, GlobalVariable *>, 32> in mergeConstants()
155 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in mergeConstants()
181 GlobalVariable *&Slot = CMap[Init]; in mergeConstants()
198 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in mergeConstants()
213 GlobalVariable *Slot = Found->second; in mergeConstants()