This is an archive of the discontinued LLVM Phabricator instance.

[flang] implement Fortran::lower::convertToBox for trivial types
AbandonedPublic

Authored by tblah on Feb 6 2023, 7:58 AM.

Details

Summary

Note: the FIR: equivalent for this converts the i1 to a fir.logical<4>.
I expect this is a bug in HLFIR expression lowering, but a separate bug
to what is added by this patch.

Diff Detail

Event Timeline

tblah created this revision.Feb 6 2023, 7:58 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 6 2023, 7:58 AM
tblah requested review of this revision.Feb 6 2023, 7:58 AM

I am working on this TODO because it is also firing from some IO statement in SPEC and just uploaded a patch that handle the logical case that was indeed the reason I left this a TODO, the type need to be taken from the origin expression. https://reviews.llvm.org/D143421
I took the liberty of adding your test to the patch.

tblah abandoned this revision.Feb 7 2023, 1:54 AM

I am working on this TODO because it is also firing from some IO statement in SPEC and just uploaded a patch that handle the logical case that was indeed the reason I left this a TODO, the type need to be taken from the origin expression. https://reviews.llvm.org/D143421
I took the liberty of adding your test to the patch.

Thanks!