Lines Matching refs:GlobalVariable
159 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals,
164 bool doMerge(const SmallVectorImpl<GlobalVariable *> &Globals,
171 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable()
183 SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables;
219 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge()
224 [&DL](const GlobalVariable *GV1, const GlobalVariable *GV2) { in doMerge()
296 GlobalVariable *GV = Globals[GI]; in doMerge()
437 bool GlobalMerge::doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, in doMerge()
516 auto *MergedGV = new GlobalVariable( in doMerge()
518 GlobalVariable::NotThreadLocal, AddrSpace); in doMerge()
566 const GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables()
573 if (const GlobalVariable *G = in collectUsedGlobalVariables()
574 dyn_cast<GlobalVariable>(InitList->getOperand(i)->stripPointerCasts())) in collectUsedGlobalVariables()
590 if (const GlobalVariable *GV = in setMustKeepGlobalVariables()
591 dyn_cast<GlobalVariable>(U->stripPointerCasts())) in setMustKeepGlobalVariables()
605 DenseMap<std::pair<unsigned, StringRef>, SmallVector<GlobalVariable *, 16>> in doInitialization()