Lines Matching refs:GlobalValue
54 using ClusterMapType = EquivalenceClasses<const GlobalValue *>;
55 using ComdatMembersType = DenseMap<const Comdat *, const GlobalValue *>;
56 using ClusterIDMapType = DenseMap<const GlobalValue *, unsigned>;
61 const GlobalValue *GV, const User *U) { in addNonConstUser()
62 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); in addNonConstUser()
65 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser()
67 } else if (const GlobalValue *GVU = dyn_cast<GlobalValue>(U)) { in addNonConstUser()
76 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers()
83 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers()
92 static const GlobalObject *getGVPartitioningRoot(const GlobalValue *GV) { in getGVPartitioningRoot()
112 auto recordGVSet = [&GVtoClusterMap, &ComdatMembers](GlobalValue &GV) { in findPartitions()
175 SmallPtrSet<const GlobalValue *, 32> Visited; in findPartitions()
218 static void externalize(GlobalValue *GV) { in externalize()
220 GV->setLinkage(GlobalValue::ExternalLinkage); in externalize()
221 GV->setVisibility(GlobalValue::HiddenVisibility); in externalize()
231 static bool isInPartition(const GlobalValue *GV, unsigned I, unsigned N) { in isInPartition()
277 CloneModule(M, VMap, [&](const GlobalValue *GV) { in SplitModule()