Adjust macros which define the ML inlining features.
authorJacob Hegna <jacobhegna@gmail.com>
Thu, 27 Apr 2023 21:33:56 +0000 (21:33 +0000)
committerJacob Hegna <jacobhegna@gmail.com>
Thu, 27 Apr 2023 22:47:12 +0000 (22:47 +0000)
commitf9b3e3411cc09393afecfdef6439a77e9ba77cc9
tree92837fc091a02a1fc830b61c56cdf0f698d30027
parentbe5f35e24f4c15caf3c4aeccddc54c52560c28a0
Adjust macros which define the ML inlining features.

This aligns the inlining macros more closely with how the regalloc
macros are defined.

 - Explicitly specify the dtype/shape
 - Remove separate names for python/C++
 - Add docstring for inline cost features

Differential Revision: https://reviews.llvm.org/D149384
llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
llvm/lib/Analysis/InlineCost.cpp
llvm/lib/Analysis/MLInlineAdvisor.cpp