[llvm-branch-commits] [llvm] [BOLT] Match functions with pseudo probes (PR #100446)

Maksim Panchenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 17 20:56:48 PST 2025


================
@@ -549,15 +473,16 @@ createFlowFunction(const BinaryFunction::BasicBlockOrderType &BlockOrder) {
 /// of the basic blocks in the binary, the count is "matched" to the block.
 /// Similarly, if both the source and the target of a count in the profile are
 /// matched to a jump in the binary, the count is recorded in CFG.
-size_t matchWeights(
-    BinaryContext &BC, const BinaryFunction::BasicBlockOrderType &BlockOrder,
-    const yaml::bolt::BinaryFunctionProfile &YamlBF, FlowFunction &Func,
-    HashFunction HashFunction, YAMLProfileReader::ProfileLookupMap &IdToYamlBF,
-    const BinaryFunction &BF,
-    const ArrayRef<YAMLProfileReader::ProbeMatchSpec> ProbeMatchSpecs);
+size_t matchWeights(BinaryContext &BC,
----------------
maksfb wrote:

`BinaryContext` can be obtained from `BinaryFunction`.

https://github.com/llvm/llvm-project/pull/100446


More information about the llvm-branch-commits mailing list