This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add support for LLVM's dso_local attr
AbandonedPublic

Authored by fdeazeve on Jun 28 2021, 6:28 AM.

Details

Reviewers
ftynse
herhut
Summary

This patch brings support for setting runtime preemption specifiers of
LLVM's GlobalValues. In LLVM semantics, if the dso_local attribute
is not explicitly requested, then it is inferred based on linkage and
visibility. We model this same behavior with a UnitAttribute: if it is
present, then we explicitly request the GlobalValue to marked as
dso_local, otherwise we rely on the GlobalValue itself to make this
decision.

Diff Detail

Event Timeline

fdeazeve created this revision.Jun 28 2021, 6:28 AM
fdeazeve requested review of this revision.Jun 28 2021, 6:28 AM
fdeazeve abandoned this revision.Jun 28 2021, 6:30 AM

This was not meant to be a new review, but an update to D104983. Not sure what I did wrong with ARC :(