This is an archive of the discontinued LLVM Phabricator instance.

[GlobalOpt] Introduce and prevent elimination of implementedby metadata
Needs ReviewPublic

Authored by wsmoses on May 17 2021, 1:18 PM.

Details

Reviewers
jdoerfert
Summary

Introduce implementedby metadata, which will be used to represent a function whose implementation
will be replaced by the corresponding implementation. In addition to introducing this metadata, this patch
modifies globalopt to prevent removal of the requisite implementation and user.

Diff Detail

Event Timeline

wsmoses created this revision.May 17 2021, 1:18 PM
wsmoses requested review of this revision.May 17 2021, 1:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2021, 1:18 PM
wsmoses updated this revision to Diff 345987.May 17 2021, 1:24 PM

Restore accidental debug info removal

This needs an LangRef patch, and a RFC to llvm-dev.

@lebedev.ri you're quite right on the LangRef modification.

Also please forgive me for not having included a link to the previous discussion of this topic on llvm-dev (see here for the most recent proposal https://lists.llvm.org/pipermail/llvm-dev/2021-April/150265.html).