[all-commits] [llvm/llvm-project] 6ee2aa: [flang][NFC] Document extension: scalars are trivi...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Oct 12 16:01:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ee2aa126cf6bccb6a4af955a663ff3512aecc63
      https://github.com/llvm/llvm-project/commit/6ee2aa126cf6bccb6a4af955a663ff3512aecc63
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/lib/Evaluate/check-expression.cpp

  Log Message:
  -----------
  [flang][NFC] Document extension: scalars are trivially contiguous

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.

Differential Revision: https://reviews.llvm.org/D111679




More information about the All-commits mailing list