Lines Matching refs:Function

117         Function *F = I->getFunction();  in getUsesOfLDSByFunction()
127 bool isKernelLDS(const Function *F) { in isKernelLDS()
138 DenseSet<Function *> AddressTakenFuncs; in getTransitiveUsesOfLDS()
139 for (Function &F : M.functions()) { in getTransitiveUsesOfLDS()
152 for (Function *F : AddressTakenFuncs) { in getTransitiveUsesOfLDS()
156 auto FunctionMakesUnknownCall = [&](const Function *F) -> bool { in getTransitiveUsesOfLDS()
170 for (Function &F : M.functions()) { in getTransitiveUsesOfLDS()
181 for (Function &Func : M.functions()) { in getTransitiveUsesOfLDS()
185 DenseSet<Function *> seen; // catches cycles in getTransitiveUsesOfLDS()
186 SmallVector<Function *, 4> wip = {&Func}; in getTransitiveUsesOfLDS()
189 Function *F = wip.pop_back_val(); in getTransitiveUsesOfLDS()
196 Function *Ith = R.second->getFunction(); in getTransitiveUsesOfLDS()
209 for (Function *F : AddressTakenFuncs) { in getTransitiveUsesOfLDS()
218 for (Function &Func : M.functions()) { in getTransitiveUsesOfLDS()
223 Function *Ith = R.second->getFunction(); in getTransitiveUsesOfLDS()
232 SmallVector<Function *> WorkList = {CG[&Func]->getFunction()}; in getTransitiveUsesOfLDS()
233 SmallPtrSet<Function *, 8> Visited; in getTransitiveUsesOfLDS()
236 Function *F = WorkList.pop_back_val(); in getTransitiveUsesOfLDS()
242 Function *Callee = CallRecord.second->getFunction(); in getTransitiveUsesOfLDS()
299 void removeFnAttrFromReachable(CallGraph &CG, Function *KernelRoot, in removeFnAttrFromReachable()
304 SmallVector<Function *> WorkList = {CG[KernelRoot]->getFunction()}; in removeFnAttrFromReachable()
305 SmallPtrSet<Function *, 8> Visited; in removeFnAttrFromReachable()
309 Function *F = WorkList.pop_back_val(); in removeFnAttrFromReachable()
315 Function *Callee = CallRecord.second->getFunction(); in removeFnAttrFromReachable()
324 Function *PotentialCallee = in removeFnAttrFromReachable()