I want the ThinLTO to support Function Specialization Pass.
Now the ThinLTO importer would only import functions by inline heuristics.
And if we want to make ThinLTO importer knows the information used by function specialization, we need to extract the analysis part as an analysis pass to make other pass get the information without transforming the IR.
There are much works to do since the function specialization pass itself is not strong enough first. The first step should be harmless.
This patch intended to be a NFC patch so here is nothing to factor the cost model. We could do that in following patches.
Test Plan: check-llvm
clang-tidy: warning: invalid case style for function 'CreateFuncSpecCostInfo' [readability-identifier-naming]
not useful