Lines Matching defs:ToFn
662 const Instruction *ToI, const Function &ToFn,
667 dbgs() << "[AA] isPotentiallyReachable @" << ToFn.getName() << " from "
681 if (GoBackwardsCB && &ToFn != FromI.getFunction() &&
682 !GoBackwardsCB(*FromI.getFunction()) && ToFn.hasFnAttribute("kernel") &&
695 LLVM_DEBUG(dbgs() << "[AA] check @" << ToFn.getName() << " from " << FromI
711 if (FromFn == &ToFn) {
717 QueryingAA, IRPosition::function(ToFn), DepClassTy::OPTIONAL);
728 if (!ToFn.isDeclaration() && ToI) {
730 QueryingAA, IRPosition::function(ToFn), DepClassTy::OPTIONAL);
731 const Instruction &EntryI = ToFn.getEntryBlock().front();
734 LLVM_DEBUG(dbgs() << "[AA] Entry " << EntryI << " of @" << ToFn.getName()
736 << "reach @" << *ToI << " [ToFn]\n");
740 // The entry of the ToFn can reach the instruction ToI. If the current
741 // instruction is already known to reach the ToFn.
745 A, *CurFromI, ToFn, ExclusionSet);
748 << "reach @" << ToFn.getName() << " [FromFn]\n");
774 LLVM_DEBUG(dbgs() << "[AA] check @" << ToFn.getName() << " from " << FromI
780 // could not find a way to reach ToFn/ToI.
822 const Function *ToFn = ToI.getFunction();
823 return ::isPotentiallyReachable(A, FromI, &ToI, *ToFn, QueryingAA,
828 Attributor &A, const Instruction &FromI, const Function &ToFn,
832 return ::isPotentiallyReachable(A, FromI, /* ToI */ nullptr, ToFn, QueryingAA,