This is an archive of the discontinued LLVM Phabricator instance.

[flang] enable as_expr codegen from array without FortranVariabeInterface
ClosedPublic

Authored by jeanPerier on Dec 15 2022, 5:56 AM.

Details

Summary

The defining op of HLFIR variables is expected to be visible
in most cases, but HLFIR codegen won't rely on it from a correctness
point of view.

This patch allows building a fir.shape from an hlfir::Entity does not
have a visible FortranVariabeInterface defining op.

Depends on D140093

Diff Detail

Event Timeline

jeanPerier created this revision.Dec 15 2022, 5:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 5:56 AM
jeanPerier requested review of this revision.Dec 15 2022, 5:56 AM

I don't understand this code very well, so someone else should approve, but all builds and tests correctly and looks good to me.

This revision is now accepted and ready to land.Dec 15 2022, 8:14 AM