This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Fixed symbol lookup for character returns.
ClosedPublic

Authored by vzakhari on May 16 2023, 8:41 PM.

Details

Summary

Symbols corresponding to entries returning character results
must be mapped to EmboxCharOp, first, before we can map them
to DeclareOp. The code may be reworked after HLFIR is enabled
by default, but right now it seems like an acceptable solution to me.

Diff Detail

Event Timeline

vzakhari created this revision.May 16 2023, 8:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 8:41 PM
vzakhari requested review of this revision.May 16 2023, 8:41 PM
jeanPerier accepted this revision.May 17 2023, 5:13 AM

Thanks, that looks good to me. Long term, we could maybe use a different map to store the MLIR block argument until they the specification are lowered and symbols can be fully mapped, but right now this would indeed be a sizable change with little reward.

This revision is now accepted and ready to land.May 17 2023, 5:13 AM
This revision was landed with ongoing or failed builds.May 17 2023, 8:59 AM
This revision was automatically updated to reflect the committed changes.

Thank you, Jean!