Lines Matching refs:GlobalValue
55 using ClusterMapType = EquivalenceClasses<const GlobalValue *>;
56 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>;
57 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>;
62 const GlobalValue *GV, const User *U) { in addNonConstUser()
63 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); in addNonConstUser()
66 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser()
70 GVtoClusterMap.unionSets(GV, cast<GlobalValue>(U)); in addNonConstUser()
78 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers()
85 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers()
107 auto recordGVSet = [&GVtoClusterMap, &ComdatMembers](GlobalValue &GV) { in findPartitions()
171 SmallPtrSet<const GlobalValue *, 32> Visited; in findPartitions()
214 static void externalize(GlobalValue *GV) { in externalize()
216 GV->setLinkage(GlobalValue::ExternalLinkage); in externalize()
217 GV->setVisibility(GlobalValue::HiddenVisibility); in externalize()
227 static bool isInPartition(const GlobalValue *GV, unsigned I, unsigned N) { in isInPartition()
274 CloneModule(M, VMap, [&](const GlobalValue *GV) { in SplitModule()