Lines Matching defs:F
30 for (const auto &F : M) {
31 if (F.isDeclaration() || !F.hasGC())
33 if (!StrategyMap.contains(F.getGC()))
45 for (auto &F : M) {
46 if (F.isDeclaration() || !F.hasGC())
48 if (auto GCName = F.getGC(); !Map.contains(GCName))
57 GCFunctionAnalysis::run(Function &F, FunctionAnalysisManager &FAM) {
58 assert(!F.isDeclaration() && "Can only get GCFunctionInfo for a definition!");
59 assert(F.hasGC() && "Function doesn't have GC!");
61 auto &MAMProxy = FAM.getResult<ModuleAnalysisManagerFunctionProxy>(F);
63 MAMProxy.cachedResultExists<CollectorMetadataAnalysis>(*F.getParent()) &&
66 MAMProxy.getCachedResult<CollectorMetadataAnalysis>(*F.getParent())
68 GCFunctionInfo Info(F, *Map[F.getGC()]);
77 GCFunctionInfo::GCFunctionInfo(const Function &F, GCStrategy &S)
78 : F(F), S(S), FrameSize(~0LL) {}
82 bool GCFunctionInfo::invalidate(Function &F, const PreservedAnalyses &PA,
96 GCFunctionInfo &GCModuleInfo::getFunctionInfo(const Function &F) {
97 assert(!F.isDeclaration() && "Can only get GCFunctionInfo for a definition!");
98 assert(F.hasGC());
100 finfo_map_type::iterator I = FInfoMap.find(&F);
104 GCStrategy *S = getGCStrategy(F.getGC());
105 Functions.push_back(std::make_unique<GCFunctionInfo>(F, *S));
107 FInfoMap[&F] = GFI;