Lines Matching refs:GlobalVariable
140 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals,
144 bool doMerge(const SmallVectorImpl<GlobalVariable *> &Globals,
151 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable()
163 SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables;
202 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge()
207 [&DL](const GlobalVariable *GV1, const GlobalVariable *GV2) { in doMerge()
278 GlobalVariable *GV = Globals[GI]; in doMerge()
419 bool GlobalMerge::doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, in doMerge()
450 GlobalVariable *MergedGV = new GlobalVariable( in doMerge()
452 "_MergedGlobals", nullptr, GlobalVariable::NotThreadLocal, AddrSpace); in doMerge()
486 const GlobalVariable *GV = M.getGlobalVariable("llvm.used"); in collectUsedGlobalVariables()
493 if (const GlobalVariable *G = in collectUsedGlobalVariables()
494 dyn_cast<GlobalVariable>(InitList->getOperand(i)->stripPointerCasts())) in collectUsedGlobalVariables()
513 if (const GlobalVariable *GV = in setMustKeepGlobalVariables()
514 dyn_cast<GlobalVariable>(LPInst->getClause(Idx) in setMustKeepGlobalVariables()
528 DenseMap<unsigned, SmallVector<GlobalVariable*, 16> > Globals, ConstGlobals, in doInitialization()