Lines Matching refs:IRFunc
175 Function *IRFunc = nullptr; in functionMatchesProfile() local
176 if (functionHasProfile(IRFuncName, IRFunc) || in functionMatchesProfile()
180 assert(FunctionId(IRFunc->getName()) != ProfileFuncName && in functionMatchesProfile()
182 return functionMatchesProfile(*IRFunc, ProfileFuncName, in functionMatchesProfile()
779 const Function &IRFunc, const FunctionId &ProfFunc) { in functionMatchesProfileHelper() argument
790 if (IRFunc.size() < MinFuncCountForCGMatching || in functionMatchesProfileHelper()
797 const auto *FuncDesc = ProbeManager->getDesc(IRFunc); in functionMatchesProfileHelper()
800 LLVM_DEBUG(dbgs() << "The checksums for " << IRFunc.getName() in functionMatchesProfileHelper()
808 findIRAnchors(IRFunc, IRAnchors); in functionMatchesProfileHelper()
835 LLVM_DEBUG(dbgs() << "The similarity between " << IRFunc.getName() in functionMatchesProfileHelper()
845 bool SampleProfileMatcher::functionMatchesProfile(Function &IRFunc, in functionMatchesProfile() argument
848 auto R = FuncProfileMatchCache.find({&IRFunc, ProfFunc}); in functionMatchesProfile()
855 bool Matched = functionMatchesProfileHelper(IRFunc, ProfFunc); in functionMatchesProfile()
856 FuncProfileMatchCache[{&IRFunc, ProfFunc}] = Matched; in functionMatchesProfile()
858 FuncToProfileNameMap[&IRFunc] = ProfFunc; in functionMatchesProfile()
859 LLVM_DEBUG(dbgs() << "Function:" << IRFunc.getName() in functionMatchesProfile()