Lines Matching refs:Functions
1065 Attributor::Attributor(SetVector<Function *> &Functions, in Attributor() argument
1068 : Allocator(InfoCache.Allocator), Functions(Functions), in Attributor()
1072 for (Function *Fn : Functions) in Attributor()
1547 if (!Functions.count(IRP.getAnchorScope())) in isAssumedDead()
2218 if (IterationCounter > MaxIterations && !Functions.empty()) { in runTillFixpoint()
2223 Function *F = Functions.front(); in runTillFixpoint()
2367 : getInfoCache().getTargetLibraryInfoForFunction(*Functions.back()); in identifyDeadInternalFunctions()
2376 for (Function *F : Functions) in identifyDeadInternalFunctions()
2394 (Functions.count(Callee) && Callee->hasLocalLinkage() && in identifyDeadInternalFunctions()
2606 if (!ToBeDeletedFunctions.count(Fn) && Functions.count(Fn)) in cleanupIR()
2610 if (!Functions.count(Fn)) in cleanupIR()
2642 for (Function *F : Functions) { in cleanupIR()
2987 if (!Functions.count(OldFn) || ToBeDeletedFunctions.count(OldFn)) in rewriteFunctionSignatures()
3034 Functions.insert(NewFn); in rewriteFunctionSignatures()
3808 SetVector<Function *> &Functions, in runAttributorOnFunctions() argument
3812 if (Functions.empty()) in runAttributorOnFunctions()
3816 dbgs() << "[Attributor] Run on module with " << Functions.size() in runAttributorOnFunctions()
3818 for (Function *Fn : Functions) in runAttributorOnFunctions()
3847 Attributor A(Functions, InfoCache, AC); in runAttributorOnFunctions()
3851 for (Function *F : Functions) in runAttributorOnFunctions()
3860 unsigned FunSize = Functions.size(); in runAttributorOnFunctions()
3862 Function *F = Functions[u]; in runAttributorOnFunctions()
3867 Functions.insert(NewF); in runAttributorOnFunctions()
3880 for (Function *F : Functions) { in runAttributorOnFunctions()
3890 if (llvm::all_of(F->uses(), [&Functions](const Use &U) { in runAttributorOnFunctions()
3893 Functions.count(const_cast<Function *>(CB->getCaller())); in runAttributorOnFunctions()
3905 LLVM_DEBUG(dbgs() << "[Attributor] Done with " << Functions.size() in runAttributorOnFunctions()
3911 SetVector<Function *> &Functions, in runAttributorLightOnFunctions() argument
3916 if (Functions.empty()) in runAttributorLightOnFunctions()
3920 dbgs() << "[AttributorLight] Run on module with " << Functions.size() in runAttributorLightOnFunctions()
3922 for (Function *Fn : Functions) in runAttributorLightOnFunctions()
3940 Attributor A(Functions, InfoCache, AC); in runAttributorLightOnFunctions()
3942 for (Function *F : Functions) { in runAttributorLightOnFunctions()
3952 if (llvm::all_of(F->uses(), [&Functions](const Use &U) { in runAttributorLightOnFunctions()
3955 Functions.count(const_cast<Function *>(CB->getCaller())); in runAttributorLightOnFunctions()
3987 LLVM_DEBUG(dbgs() << "[Attributor] Done with " << Functions.size() in runAttributorLightOnFunctions()
4026 SetVector<Function *> Functions; in run() local
4028 Functions.insert(&F); in run()
4033 if (runAttributorOnFunctions(InfoCache, Functions, AG, CGUpdater, in run()
4049 SetVector<Function *> Functions; in run() local
4051 Functions.insert(&N.getFunction()); in run()
4053 if (Functions.empty()) in run()
4056 Module &M = *Functions.back()->getParent(); in run()
4060 InformationCache InfoCache(M, AG, Allocator, /* CGSCC */ &Functions); in run()
4061 if (runAttributorOnFunctions(InfoCache, Functions, AG, CGUpdater, in run()
4078 SetVector<Function *> Functions; in run() local
4080 Functions.insert(&F); in run()
4085 if (runAttributorLightOnFunctions(InfoCache, Functions, AG, CGUpdater, FAM, in run()
4105 SetVector<Function *> Functions; in run() local
4107 Functions.insert(&N.getFunction()); in run()
4109 if (Functions.empty()) in run()
4112 Module &M = *Functions.back()->getParent(); in run()
4116 InformationCache InfoCache(M, AG, Allocator, /* CGSCC */ &Functions); in run()
4117 if (runAttributorLightOnFunctions(InfoCache, Functions, AG, CGUpdater, FAM, in run()