Lines Matching refs:Globals
51 SmallVector<GlobalVariable *, 8> Globals; in runOnModule() local
52 if (!collectGlobals(M, Globals)) { in runOnModule()
57 Tys.reserve(Globals.size()); in runOnModule()
62 for (GlobalVariable *GV : Globals) { in runOnModule()
92 CreateInitFunction(LLVMCtxt, M, MergedGV, MergedTy, BufferSize, Globals); in runOnModule()
116 for (size_t i = 0, e = Globals.size(); i != e; ++i) { in runOnModule()
117 GlobalVariable *G = Globals[i]; in runOnModule()
175 const SmallVectorImpl<GlobalVariable *> &Globals) { in CreateInitFunction() argument
177 Initializers.reserve(Globals.size()); in CreateInitFunction()
178 for (size_t i = 0, e = Globals.size(); i != e; ++i) { in CreateInitFunction()
179 GlobalVariable *G = Globals[i]; in CreateInitFunction()
209 bool collectGlobals(Module &M, SmallVectorImpl<GlobalVariable *> &Globals) { in collectGlobals() argument
228 Globals.push_back(&GV); in collectGlobals()
231 return !Globals.empty(); in collectGlobals()