This is an archive of the discontinued LLVM Phabricator instance.

[flang][NFC] Document extension: scalars are trivially contiguous
ClosedPublic

Authored by klausler on Oct 12 2021, 2:08 PM.

Details

Summary

The Fortran 2018 standard defines the concept of simple contiguity
in subclause 9.5.4 as a characteristic of arrays. So that scalars
may also be used in contexts where simply contiguous arrays are
allowed, f18 treats them as single-element arrays that are trivially
contiguous. This patch documents this semantic extension and
also adds comments to the predicate that implements the concept.

Diff Detail

Event Timeline

klausler created this revision.Oct 12 2021, 2:08 PM
klausler requested review of this revision.Oct 12 2021, 2:08 PM
This revision is now accepted and ready to land.Oct 12 2021, 3:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2021, 4:02 PM