Lines Matching refs:GlobalVariable
160 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals,
165 bool doMerge(const SmallVectorImpl<GlobalVariable *> &Globals,
172 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable()
184 SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables;
220 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge()
225 Globals, [&DL](const GlobalVariable *GV1, const GlobalVariable *GV2) { in doMerge()
298 GlobalVariable *GV = Globals[GI]; in doMerge()
439 bool GlobalMerge::doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, in doMerge()
518 auto *MergedGV = new GlobalVariable( in doMerge()
520 GlobalVariable::NotThreadLocal, AddrSpace); in doMerge()
570 const GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables()
577 if (const GlobalVariable *G = in collectUsedGlobalVariables()
578 dyn_cast<GlobalVariable>(InitList->getOperand(i)->stripPointerCasts())) in collectUsedGlobalVariables()
594 if (const GlobalVariable *GV = in setMustKeepGlobalVariables()
595 dyn_cast<GlobalVariable>(U->stripPointerCasts())) in setMustKeepGlobalVariables()
609 DenseMap<std::pair<unsigned, StringRef>, SmallVector<GlobalVariable *, 16>> in doInitialization()