This is an archive of the discontinued LLVM Phabricator instance.

[flang] Load unlimited polymorphic box the same way as other
ClosedPublic

Authored by clementval on Jan 10 2023, 8:00 AM.

Details

Summary

Unlimited polymorphic descriptor have a set size and can be loaded the
same way as polymorphic or monomorphic descriptors. The descriptor
code gen as been set in D138587.
Of course, the data hold by those descriptors have an unknown size
at compile time.

Depends on D141383

Diff Detail

Event Timeline

clementval created this revision.Jan 10 2023, 8:00 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 10 2023, 8:00 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Jan 10 2023, 8:00 AM

I was not able to load this patch onto my system. Does something need to be merged? I got the following message:

This diff is against commit 793ef93e8049dd8217f3f90881c7395e691c4226, but
the commit is nowhere in the working copy. Try to apply it against the
current working copy state? (b05c71814c3b9f91a2e00af891d67a83790a109c)
clementval edited the summary of this revision. (Show Details)Jan 10 2023, 8:06 AM

I was not able to load this patch onto my system. Does something need to be merged? I got the following message:

This diff is against commit 793ef93e8049dd8217f3f90881c7395e691c4226, but
the commit is nowhere in the working copy. Try to apply it against the
current working copy state? (b05c71814c3b9f91a2e00af891d67a83790a109c)

Forgot to add a dependency on a previous patch.

PeteSteinfeld accepted this revision.Jan 10 2023, 8:19 AM

You probably just need to remove line 3016 from CodeGen.cpp.

flang/lib/Optimizer/CodeGen/CodeGen.cpp
3015–3016

I get a warning on this line because eleTy is not used anywhere, and the build options turn warnings into errors.

This revision is now accepted and ready to land.Jan 10 2023, 8:19 AM

Remove unused variable

flang/lib/Optimizer/CodeGen/CodeGen.cpp
3015–3016

Makes sense. Some buildbot have that as well. Will remove it.

PeteSteinfeld accepted this revision.Jan 10 2023, 8:40 AM

All builds and tests correctly and looks good.