This is an archive of the discontinued LLVM Phabricator instance.

[flang] Represent TARGET for globals with 'target' attribute.
ClosedPublic

Authored by vzakhari on Oct 5 2022, 1:22 PM.

Details

Summary

TARGET dummy arguments have fir.target attribute attached to them,
but globals do not have any sign of TARGET. This patch adds
target attribute for globals, which can be queried via
::fir::GlobalOp::getTarget().

Diff Detail

Event Timeline

vzakhari created this revision.Oct 5 2022, 1:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 1:22 PM
vzakhari requested review of this revision.Oct 5 2022, 1:22 PM
vzakhari updated this revision to Diff 465532.Oct 5 2022, 1:29 PM
vzakhari edited the summary of this revision. (Show Details)
jeanPerier accepted this revision.Oct 6 2022, 2:19 AM

Looks good

This revision is now accepted and ready to land.Oct 6 2022, 2:19 AM