This is an archive of the discontinued LLVM Phabricator instance.

[fir] Use contralized values for indexing box
ClosedPublic

Authored by clementval on Nov 10 2021, 2:23 AM.

Details

Summary

Add constant to index the different values in a box so that
they can be reused for the codegen part as well.

Diff Detail

Event Timeline

clementval created this revision.Nov 10 2021, 2:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2021, 2:23 AM
clementval requested review of this revision.Nov 10 2021, 2:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2021, 2:23 AM
awarzynski accepted this revision.Nov 10 2021, 4:52 AM
awarzynski added a subscriber: awarzynski.

Big thank you for this patch! IMHO it would be helpful to expand the comment, but it's already a big improvement as is!

flang/lib/Optimizer/CodeGen/TypeConverter.h
24

[nit] I appreciate that we do know what box this is referring to, but it might be unclear to somebody completely new to this code-base. Perhaps it's worth referring to the CFI struct? And fir.box instead of box?

This revision is now accepted and ready to land.Nov 10 2021, 4:52 AM
clementval marked an inline comment as done.Nov 10 2021, 6:15 AM
This revision was automatically updated to reflect the committed changes.