This is an archive of the discontinued LLVM Phabricator instance.

[flang] add hlfir.transpose operation
ClosedPublic

Authored by tblah on Feb 27 2023, 8:07 AM.

Details

Summary

Add a HLFIR operation for the TRANSPOSE transformational intrinsic,
according to the design set out in flang/doc/HighLevelFIR.md

Diff Detail

Event Timeline

tblah created this revision.Feb 27 2023, 8:07 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 27 2023, 8:07 AM
tblah requested review of this revision.Feb 27 2023, 8:07 AM
jeanPerier accepted this revision.Feb 27 2023, 8:55 AM

Small nit, looks good otherwise.

flang/lib/Optimizer/HLFIR/IR/HLFIRDialect.cpp
133

getFortranElementOrSequenceType(type).isa<fir::SequenceType>() should simplify the logic.

This revision is now accepted and ready to land.Feb 27 2023, 8:55 AM
tblah updated this revision to Diff 500826.Feb 27 2023, 9:14 AM

Thanks for review.

Changes: use isa<> instead of !!cast<>

This revision was automatically updated to reflect the committed changes.