This is an archive of the discontinued LLVM Phabricator instance.

[flang] Shift argument attributes when result operand is inserted
ClosedPublic

Authored by clementval on Aug 18 2022, 1:49 AM.

Details

Summary

The TargetRewrite pass convert the signature of the function.
In some cases it adds operands to the function to hanlde the result of it.
This patch makes sure the argument attributes present before the conversion
are replaced with the correct arguments after the conversion is performed.

Depends D132113

Diff Detail

Event Timeline

clementval created this revision.Aug 18 2022, 1:49 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 18 2022, 1:49 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Aug 18 2022, 1:49 AM
vdonaldson accepted this revision.Aug 18 2022, 10:01 AM
This revision is now accepted and ready to land.Aug 18 2022, 10:01 AM