llvm-project
adaca134 - [BOLT] Introduce getOutputBinaryFunctions(). NFCI (#172174)

Commit
10 days ago
[BOLT] Introduce getOutputBinaryFunctions(). NFCI (#172174) To gain better control over the functions that go into the output file and their order, introduce `BinaryContext::getOutputBinaryFunctions()`. The new API returns a modifiable list of functions in output order. This list is filled by a new `PopulateOutputFunctions` pass and includes emittable functions from the input file, plus functions added by BOLT (injected functions). The new functionality allows to freely intermix input functions with injected ones in the output, which will be used in new PRs. The new function replaces `BinaryContext::getSortedFunctions()`, but unlike its predecessor, it includes injected functions in the returned list.
Author
Parents
Loading