This change is required by https://reviews.llvm.org/D108363.
This change exposes addAliasScopeMetadata() to the llvm namespace and extends
it beyond the inliner requirements. We're not changing the existing use of
addAliasScopeMetadata() within InlineFunction.cpp which works on the CallBase
with a ValueToValueMap. We're generalizing this function in such a way that
it works on a Function without an explicit ValueToValueMap.
clang-tidy: warning: invalid case style for variable 'paramHasAttr' [readability-identifier-naming]
not useful