This patch introduces an analysis pass to extract function features,
which will be needed by the ML InlineAdvisor.
RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-April/140763.html
Differential D80579
[llvm] Add function feature extraction analysis mtrofin on May 26 2020, 12:14 PM. Authored by
Details This patch introduces an analysis pass to extract function features, RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-April/140763.html
Diff Detail
Event Timeline
Comment Actions renamed & documented members
Comment Actions Last high-level comment: Should we call this "FeatureAnalysis" (without the Inline)? I can see us reusing this for other (ML) purposes. Nothing in this code is really tied or specific to the inliner I guess. That said, I think the "analysis" is reasonable given the FIXME (thx!). It is clear there is improvement potential and the results are properly named and described.
Comment Actions I'd prefer waiting to see another usecase before renaming, or potentially refactoring (depends on what we'll learn when we get to that usecase) - wdyt?
Comment Actions We should use add_llvm_component_library and LLVMBuild.txt instead of LINK_LIBS (LINK_LIBS are used for system libraries like pthread). There is also a missing dependency in LLVMPasses. I fixed it in 993bbaf6a35baed4ad3d8422a76c4311140641a8
|
These files are missing license headers BTW. Not sure if that was intentional.