Lines Matching refs:Fn

158   FunctionHandle(Function *Fn, CFLAliasAnalysis *CFLAA)  in FunctionHandle()
159 : CallbackVH(Fn), CFLAA(CFLAA) { in FunctionHandle()
160 assert(Fn != nullptr); in FunctionHandle()
205 void scan(Function *Fn);
207 void evict(Function *Fn) { Cache.erase(Fn); } in evict()
211 const Optional<FunctionInfo> &ensureCached(Function *Fn) { in ensureCached()
212 auto Iter = Cache.find(Fn); in ensureCached()
214 scan(Fn); in ensureCached()
215 Iter = Cache.find(Fn); in ensureCached()
358 static bool isFunctionExternal(Function *Fn) { in isFunctionExternal() argument
359 return Fn->isDeclaration() || !Fn->hasLocalLinkage(); in isFunctionExternal()
401 for (auto *Fn : Fns) { in tryInterproceduralAnalysis() local
402 if (isFunctionExternal(Fn) || Fn->isVarArg()) in tryInterproceduralAnalysis()
404 auto &MaybeInfo = AA.ensureCached(Fn); in tryInterproceduralAnalysis()
411 for (auto *Fn : Fns) { in tryInterproceduralAnalysis() local
412 auto &Info = *AA.ensureCached(Fn); in tryInterproceduralAnalysis()
417 for (auto &Param : Fn->args()) { in tryInterproceduralAnalysis()
790 if (auto *Fn = Call->getCalledFunction()) { in getPossibleTargets() local
791 Output.push_back(Fn); in getPossibleTargets()
957 static void buildGraphFrom(CFLAliasAnalysis &Analysis, Function *Fn, in buildGraphFrom() argument
960 for (auto &Bb : Fn->getBasicBlockList()) in buildGraphFrom()
987 static FunctionInfo buildSetsFrom(CFLAliasAnalysis &Analysis, Function *Fn) { in buildSetsFrom() argument
992 buildGraphFrom(Analysis, Fn, ReturnedValues, Map, Graph); in buildSetsFrom()
1061 for (auto &Arg : Fn->args()) { in buildSetsFrom()
1073 void CFLAliasAnalysis::scan(Function *Fn) { in scan() argument
1074 auto InsertPair = Cache.insert(std::make_pair(Fn, Optional<FunctionInfo>())); in scan()
1079 FunctionInfo Info(buildSetsFrom(*this, Fn)); in scan()
1080 Cache[Fn] = std::move(Info); in scan()
1081 Handles.push_front(FunctionHandle(Fn, this)); in scan()
1090 Function *Fn = nullptr; in query() local
1101 Fn = *MaybeFnA; in query()
1105 Fn = *MaybeFnB; in query()
1108 assert(Fn != nullptr); in query()
1109 auto &MaybeInfo = ensureCached(Fn); in query()