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>;
73 const GlobalValue *GV, const User *U) { in addNonConstUser()
74 assert((!isa<Constant>(U) || isa<GlobalValue>(U)) && "Bad user"); in addNonConstUser()
77 const GlobalValue *F = I->getParent()->getParent(); in addNonConstUser()
79 } else if (const GlobalValue *GVU = dyn_cast<GlobalValue>(U)) { in addNonConstUser()
88 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers()
95 if (isa<Constant>(UU) && !isa<GlobalValue>(UU)) { in addAllGlobalValueUsers()
104 static const GlobalObject *getGVPartitioningRoot(const GlobalValue *GV) { in getGVPartitioningRoot()
125 auto recordGVSet = [&GVtoClusterMap, &ComdatMembers](GlobalValue &GV) { in findPartitions()
177 SmallPtrSet<const GlobalValue *, 32> Visited; in findPartitions()
222 static void externalize(GlobalValue *GV) { in externalize()
224 GV->setLinkage(GlobalValue::ExternalLinkage); in externalize()
225 GV->setVisibility(GlobalValue::HiddenVisibility); in externalize()
235 static bool isInPartition(const GlobalValue *GV, unsigned I, unsigned N) { in isInPartition()
282 SmallVector<const GlobalValue *> UnmappedFunctions; in SplitModule()
285 F.getLinkage() != GlobalValue::LinkageTypes::ExternalLinkage) in SplitModule()
316 CloneModule(M, VMap, [&](const GlobalValue *GV) { in SplitModule()