This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Support fir.declare in AbstractResult pass
ClosedPublic

Authored by jeanPerier on Apr 24 2023, 5:12 AM.

Details

Summary

The AbstractResult pass replaces allocation of function result on the callee
side per an extra argument so that the allocation of the result can be
done on the caller stack.
It looks for the result allocation from the fir.return op, so it needs
to handle (in a transparent way) a fir.declare in the chain between the
allocation and the fir.return.

Diff Detail

Event Timeline

jeanPerier created this revision.Apr 24 2023, 5:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 5:12 AM
jeanPerier requested review of this revision.Apr 24 2023, 5:12 AM
vzakhari accepted this revision.Apr 24 2023, 9:24 AM

Thank you!

This revision is now accepted and ready to land.Apr 24 2023, 9:24 AM