Lines Matching refs:CG
337 static void getUsesOfLDSByFunction(CallGraph const &CG, Module &M, in getUsesOfLDSByFunction() argument
371 static LDSUsesInfoTy getTransitiveUsesOfLDS(CallGraph const &CG, Module &M) { in getTransitiveUsesOfLDS() argument
375 getUsesOfLDSByFunction(CG, M, direct_map_kernel, direct_map_function); in getTransitiveUsesOfLDS()
393 for (const CallGraphNode::CallRecord &R : *CG[F]) { in getTransitiveUsesOfLDS()
431 for (const CallGraphNode::CallRecord &R : *CG[F]) { in getTransitiveUsesOfLDS()
451 for (const CallGraphNode::CallRecord &R : *CG[&Func]) { in getTransitiveUsesOfLDS()
1032 void removeNoLdsKernelIdFromReachable(CallGraph &CG, Function *KernelRoot) { in removeNoLdsKernelIdFromReachable() argument
1035 SmallVector<Function *> Tmp({CG[KernelRoot]->getFunction()}); in removeNoLdsKernelIdFromReachable()
1045 for (auto &N : *CG[F]) { in removeNoLdsKernelIdFromReachable()
1057 for (auto &N : *CG.getExternalCallingNode()) { in removeNoLdsKernelIdFromReachable()
1136 CallGraph CG = CallGraph(M); in runOnModule() local
1145 LDSUsesInfoTy LDSUsesInfo = getTransitiveUsesOfLDS(CG, M); in runOnModule()
1229 removeNoLdsKernelIdFromReachable(CG, F); in runOnModule()