Lines Matching defs:BF
213 YAMLProfileWriter::convert(const BinaryFunction &BF, bool UseDFS,
217 const BinaryContext &BC = BF.getBinaryContext();
221 const uint16_t LBRProfile = BF.getProfileFlags() & BinaryFunction::PF_LBR;
224 BF.computeHash(UseDFS);
225 BF.computeBlockHashes();
227 YamlBF.Name = DataAggregator::getLocationName(BF, BAT);
228 YamlBF.Id = BF.getFunctionNumber();
229 YamlBF.Hash = BF.getHash();
230 YamlBF.NumBasicBlocks = BF.size();
231 YamlBF.ExecCount = BF.getKnownExecutionCount();
233 if (PseudoProbeDecoder && BF.getGUID()) {
235 convertBFInlineTree(*PseudoProbeDecoder, InlineTree, BF.getGUID());
239 llvm::copy(UseDFS ? BF.dfs() : BF.getLayout().blocks(),
242 const FunctionLayout Layout = BF.getLayout();
348 const uint64_t FuncAddr = BF.getAddress();
397 const BinaryFunction &BF = BFI.second;
398 if (BF.hasProfile() && !BF.empty()) {
399 assert(BF.getProfileFlags() != BinaryFunction::PF_NONE);
401 ProfileFlags = BF.getProfileFlags();
403 assert(BF.getProfileFlags() == ProfileFlags &&
417 const BinaryFunction &BF = BFI.second;
418 if (BF.hasProfile()) {
419 if (!BF.hasValidProfile() && !RI.getProfileReader()->isTrustedSource())
422 BP.Functions.emplace_back(convert(BF, opts::ProfileUseDFS, InlineTree));