This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] lower hlfir.get_extent to FIR
ClosedPublic

Authored by tblah on Apr 13 2023, 5:57 AM.

Details

Summary

By the ConvertToFIR pass, the hlfir.get_shape operation will have been
lowered into a fir.shape operation (during the HFLIR bufferization pass)
and so, lowering get_extent is as simple as fetching the extent from the
shape operation.

Depends on: D146833

Diff Detail

Event Timeline

tblah created this revision.Apr 13 2023, 5:57 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 13 2023, 5:57 AM
tblah requested review of this revision.Apr 13 2023, 5:57 AM
tblah updated this revision to Diff 513204.Apr 13 2023, 6:01 AM

Fix header diff plus poke CI into re-trying patch application.

jeanPerier accepted this revision.Apr 14 2023, 1:46 AM

Looks good. Beware of the patch application issues.

flang/lib/Optimizer/HLFIR/Transforms/ConvertToFIR.cpp
646

tothe -> to the

This revision is now accepted and ready to land.Apr 14 2023, 1:46 AM
tblah marked an inline comment as done.Apr 14 2023, 4:18 AM
tblah edited the summary of this revision. (Show Details)
tblah updated this revision to Diff 513541.Apr 14 2023, 4:27 AM

Fix typo

This revision was landed with ongoing or failed builds.Apr 17 2023, 6:28 AM
This revision was automatically updated to reflect the committed changes.