This is an archive of the discontinued LLVM Phabricator instance.

[InlineFunction] Extend addAliasScopeMetadata() for non inliner requirements.
Needs ReviewPublic

Authored by abinavpp on Aug 19 2021, 3:38 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

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.

Diff Detail

Event Timeline

abinavpp created this revision.Aug 19 2021, 3:38 AM
abinavpp requested review of this revision.Aug 19 2021, 3:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2021, 3:38 AM

We need not review this until we're good with https://reviews.llvm.org/D108363.

abinavpp added inline comments.Aug 19 2021, 4:26 AM
llvm/lib/Transforms/Utils/InlineFunction.cpp
1016–1017

This is just to maintain the original indentation of the snippet in the loop that we've converted to a lambda expression. Removing this can introduce unrelated changes in the diff which might make the review more difficult.

Herald added a project: Restricted Project. · View Herald TranscriptApr 11 2022, 9:30 PM