[BOLT][NFC] Split out function marking from profile parsing
Move out `setHasProfileAvailable` into `markFunctionsWithProfile`.
This also allows extracting per-pre-aggregated type handling in
`parseAggregatedLBREntry` into a switch statement.
Test Plan:
NFC
Processing time change (wall time):
* 10MB pre-aggregated profile:
- Parsing aggregated branch events: 0.16s -> 0.05s
- Pre-process profile data (parsing+marking): 0.18s -> 0.16s
* 6GB perf.data file:
- Parsing branch events: 29.06s -> 28.55s
- Pre-process profile data (excluding perf script): 29.47s -> 29.13s
Reviewers:
rafaelauler, yota9, maksfb, ayermolo, yozhu, yavtuk, paschalis-mpeis
Pull Request: https://github.com/llvm/llvm-project/pull/199320