This is an archive of the discontinued LLVM Phabricator instance.

[flang] Adjust names in Semantics that imply too much; address TODO in IsSimplyContiguous
ClosedPublic

Authored by klausler on Nov 30 2021, 4:40 PM.

Details

Summary

Some kinds of Fortran arrays are declared with the same syntax,
and it is impossible to tell from a shape (:, :) or (*) whether
the object is assumed shape, deferred shape, assumed size, implied
shape, or whatever without recourse to more information about the
symbol in question. This patch softens the names of some predicate
functions (IsAssumedShape to CanBeAssumedShape) and makes others
more reflective of the syntax they represent (isAssumed to isStar)
in an attempt to encourage coders to seek and find definitive
predicate functions whose names deliver what they seem to mean.

Address TODO comments in IsSimplyContiguous() by using the
updated IsAssumedShape() predicate.

Diff Detail

Event Timeline

klausler created this revision.Nov 30 2021, 4:40 PM
klausler requested review of this revision.Nov 30 2021, 4:40 PM
klausler retitled this revision from [flang] Adjust names in Semantics that imply too much (NFC) to [flang] Adjust names in Semantics that imply too much; address TODO in IsSimplyContiguous.
jeanPerier accepted this revision.Dec 1 2021, 12:19 AM

LGTM, thanks !

This revision is now accepted and ready to land.Dec 1 2021, 12:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 11:19 AM