Lines Matching refs:Func

356   SelectInstVisitor(Function &Func) : F(Func) {}  in SelectInstVisitor()
358 void countSelects(Function &Func) { in countSelects()
361 visit(Func); in countSelects()
368 void instrumentSelects(Function &Func, unsigned *Ind, unsigned TotalNC, in instrumentSelects()
375 visit(Func); in instrumentSelects()
379 void annotateSelects(Function &Func, PGOUseFunc *UF, unsigned *Ind) { in annotateSelects()
383 visit(Func); in annotateSelects()
609 Function &Func, TargetLibraryInfo &TLI, in FuncPGOInstrumentation() argument
614 : F(Func), IsCS(IsCS), ComdatMembers(ComdatMembers), VPC(Func, TLI), in FuncPGOInstrumentation()
615 ValueSites(IPVK_Last + 1), SIVisitor(Func), in FuncPGOInstrumentation()
618 SIVisitor.countSelects(Func); in FuncPGOInstrumentation()
1059 PGOUseFunc(Function &Func, Module *Modu, TargetLibraryInfo &TLI, in PGOUseFunc() argument
1063 : F(Func), M(Modu), BFI(BFIin), PSI(PSI), in PGOUseFunc()
1064 FuncInfo(Func, TLI, ComdatMembers, false, BPI, BFIin, IsCS, in PGOUseFunc()
1674 static void fixFuncEntryCount(PGOUseFunc &Func, LoopInfo &LI, in fixFuncEntryCount() argument
1676 Function &F = Func.getFunc(); in fixFuncEntryCount()
1688 if (!Func.findBBInfo(&BBI)) in fixFuncEntryCount()
1691 CountValue = Func.getBBInfo(&BBI).CountValue; in fixFuncEntryCount()
1707 uint64_t FuncEntryCount = Func.getBBInfo(&*F.begin()).CountValue; in fixFuncEntryCount()
1721 static void verifyFuncBFI(PGOUseFunc &Func, LoopInfo &LI, in verifyFuncBFI() argument
1725 Function &F = Func.getFunc(); in verifyFuncBFI()
1737 if (Func.getBBInfo(&BBI).CountValid) in verifyFuncBFI()
1738 CountValue = Func.getBBInfo(&BBI).CountValue; in verifyFuncBFI()
1858 PGOUseFunc Func(F, &M, TLI, ComdatMembers, BPI, BFI, PSI, IsCS, in annotateAllFunctions() local
1866 if (!Func.readCounters(PGOReader.get(), AllZeros, AllMinusOnes)) in annotateAllFunctions()
1870 if (Func.getProgramMaxCount() != 0) in annotateAllFunctions()
1883 Func.populateCounters(); in annotateAllFunctions()
1884 Func.setBranchWeights(); in annotateAllFunctions()
1885 Func.annotateValueSites(); in annotateAllFunctions()
1886 Func.annotateIrrLoopHeaderWeights(); in annotateAllFunctions()
1887 PGOUseFunc::FuncFreqAttr FreqAttr = Func.getFuncFreqAttr(); in annotateAllFunctions()
1903 dbgs() << "pgo-view-counts: " << Func.getFunc().getName() << "\n"; in annotateAllFunctions()
1912 WriteGraph(&Func, Twine("PGORawCounts_") + Func.getFunc().getName()); in annotateAllFunctions()
1914 ViewGraph(&Func, Twine("PGORawCounts_") + Func.getFunc().getName()); in annotateAllFunctions()
1916 dbgs() << "pgo-view-raw-counts: " << Func.getFunc().getName() << "\n"; in annotateAllFunctions()
1917 Func.dumpInfo(); in annotateAllFunctions()
1927 fixFuncEntryCount(Func, LI, NBPI); in annotateAllFunctions()
1935 verifyFuncBFI(Func, LI, NBPI, HotCountThreshold, ColdCountThreshold); in annotateAllFunctions()