This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add TypeAndShape::MeasureElementSizeInBytes()
ClosedPublic

Authored by klausler on Feb 2 2021, 2:41 PM.

Details

Summary

Split up MeasureSizeInBytes() so that array element sizes can be
calculated accurately; use the new API in some places where
DynamicType::MeasureSizeInBytes() was being used but the new
API performs better due to TypeAndShape having precise CHARACTER
length information.

Diff Detail

Event Timeline

klausler created this revision.Feb 2 2021, 2:41 PM
klausler requested review of this revision.Feb 2 2021, 2:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2021, 2:41 PM
PeteSteinfeld accepted this revision.Feb 2 2021, 2:58 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Feb 2 2021, 2:58 PM
This revision was landed with ongoing or failed builds.Feb 2 2021, 3:15 PM
This revision was automatically updated to reflect the committed changes.