[BOLT] introducing profi params
authorspupyrev <spupyrev@fb.com>
Tue, 27 Sep 2022 18:50:42 +0000 (11:50 -0700)
committerspupyrev <spupyrev@fb.com>
Mon, 9 Jan 2023 20:03:28 +0000 (12:03 -0800)
commit61eb12e1f423063b0ead944827dc53b02baed0d4
treeeb7ba620731440495ea79c9dec8fa2a8b22b44e3
parent8e0c1aaf6ba315420e8dc136da3f7abd10f5c4ed
[BOLT] introducing profi params

We want to use profile inference (**profi**) in BOLT for stale profile matching.
To this end, I am making a few changes modifying the interface of the algorithm.
This is the first change for existing usages of profi (e.g., CSSPGO):
- introducing an object holding the algorithmic parameters;
- some renaming of existing options;
- dropped unused option, SampleProfileInferEntryCount, as we don't plan to change its default value;
- no changes in the output / tests.

Reviewed By: hoy

Differential Revision: https://reviews.llvm.org/D134756
llvm/include/llvm/Transforms/Utils/SampleProfileInference.h
llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
llvm/lib/Transforms/Utils/SampleProfileInference.cpp
llvm/lib/Transforms/Utils/SampleProfileLoaderBaseUtil.cpp
llvm/test/Transforms/SampleProfile/csspgo-import-list.ll
llvm/test/Transforms/SampleProfile/profile-context-tracker.ll