[all-commits] [llvm/llvm-project] 21b825: [flang] Carry polymoprhic dynamic type when using ...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Oct 27 23:31:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21b825738b7e4f45a42cd5fb1b8480996677fc9e
      https://github.com/llvm/llvm-project/commit/21b825738b7e4f45a42cd5fb1b8480996677fc9e
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/BoxValue.h
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/lib/Optimizer/Builder/MutableBox.cpp
    M flang/test/Lower/allocatable-polymorphic.f90
    M flang/test/Lower/dispatch.f90

  Log Message:
  -----------
  [flang] Carry polymoprhic dynamic type when using coordinate_of polymoprhic array

Dynamic type of a polymorphic array element was retrieved by finding the
coordinate operation and use the base array. This patch remove this hack and use
the newly PolymorphicValue to carray the dynamic type together with the element.
The patch also rearrange some tests in the `allocatable-polymorphic.f90`.

Depends on D136824

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list