This adds an OnlyHint parameter to createFunctionInliningPass functions, and a -inline-restrict-to-hint command line parameter.
These allows to restrict the inlining pass to hinted functions only.
Before this, the only way to achieve something similar was to use the -inline-threshold and -inlinehint-threshold command line arguments, while using a negative enough value for -inline-threshold to avoid any inlining (even thoses reducing the size). Moreover, there was no clear interface for this other than the command line arguments.
Adding it will allow a straightforward implementation for /Ob1 in clang-cl.
Nit: restric -> restrict