Lines Matching refs:BF

74     BinaryFunction &BF, const yaml::bolt::BinaryFunctionProfile &YamlBF) {  in parseFunctionProfile()  argument
75 BinaryContext &BC = BF.getBinaryContext(); in parseFunctionProfile()
84 BF.setExecutionCount(YamlBF.ExecCount); in parseFunctionProfile()
86 if (!opts::IgnoreHash && YamlBF.Hash != BF.computeHash(/*UseDFS=*/true)) { in parseFunctionProfile()
92 if (YamlBF.NumBasicBlocks != BF.size()) { in parseFunctionProfile()
98 BinaryFunction::BasicBlockOrderType DFSOrder = BF.dfs(); in parseFunctionProfile()
141 BF.getAllCallSites().emplace_back(CalleeSymbol, YamlCSI.Count, in parseFunctionProfile()
153 BF.getInstructionAtOffset(BB.getInputOffset() + YamlCSI.Offset); in parseFunctionProfile()
174 << " in function " << BF << '\n'; in parseFunctionProfile()
217 for (BinaryBasicBlock &BB : BF) in parseFunctionProfile()
222 BF.setExecutionCount(FunctionExecutionCount); in parseFunctionProfile()
223 estimateEdgeCounts(BF); in parseFunctionProfile()
229 BF.markProfiled(YamlBP.Header.Flags); in parseFunctionProfile()
234 << " edges in profile did not match function " << BF << '\n'; in parseFunctionProfile()
272 BinaryFunction &BF = KV.second; in preprocessProfile() local
273 for (StringRef Name : BF.getNames()) { in preprocessProfile()
277 BF.setExecutionCount(YamlBF.ExecCount); in preprocessProfile()
286 bool YAMLProfileReader::mayHaveProfileData(const BinaryFunction &BF) { in mayHaveProfileData() argument
287 for (StringRef Name : BF.getNames()) { in mayHaveProfileData()
303 BinaryFunction &BF) { in readProfile() argument
304 if (opts::IgnoreHash && Profile.NumBasicBlocks == BF.size()) in readProfile()
307 Profile.Hash == static_cast<uint64_t>(BF.getHash())) in readProfile()
402 if (BinaryFunction *BF = YamlProfileToFunction[YamlBF.Id]) in readProfile() local
403 parseFunctionProfile(*BF, YamlBF); in readProfile()