This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Inherit constant length for the result of hlfir.transpose.
ClosedPublic

Authored by vzakhari on Jul 20 2023, 9:26 PM.

Details

Summary

Character length may be unknown for the type of Fortran::evaluate::FunctionRef
expression, but we can try to propagate it from the argument of
TRANSPOSE if it is known constant. Alternatively, we could relax
hlfir.transpose verification (i.e. allow character types mismatch
for the argument and the result).

Depends on D155912

Diff Detail

Event Timeline

vzakhari created this revision.Jul 20 2023, 9:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2023, 9:26 PM
vzakhari requested review of this revision.Jul 20 2023, 9:26 PM
tblah accepted this revision.Jul 24 2023, 2:11 AM

Thanks for this!

This revision is now accepted and ready to land.Jul 24 2023, 2:11 AM