[all-commits] [llvm/llvm-project] 25ce98: [flang] Change TYPE(*) arrays passing convention

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Apr 13 23:46:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25ce98670077a3fec5c384fed65f4ac663a56f7b
      https://github.com/llvm/llvm-project/commit/25ce98670077a3fec5c384fed65f4ac663a56f7b
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/test/Lower/assumed-type.f90
    M flang/test/Lower/polymorphic-types.f90

  Log Message:
  -----------
  [flang] Change TYPE(*) arrays passing convention

- Fix the BIND(C) assumed-shape case: TYPE(*) assumed shape are passed
  via CFI_cdesc_t according to Fortran 2018 standard 18.3.6 point 2 (5).
- Align the none BIND(C) case with the BIND(C) case. There is little
  point passing TYPE(*) assumed size via descriptor, use a simple
  address. C710 ensures there is no way the knowledge of the actual
  type will be required when manipulating the dummy.

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




More information about the All-commits mailing list