[all-commits] [llvm/llvm-project] 0b19ac: [flang] Update createTempMutableBox to support pol...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Jan 16 00:37:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b19ac83005021ce084c9da1d436e86015bfb2f8
      https://github.com/llvm/llvm-project/commit/0b19ac83005021ce084c9da1d436e86015bfb2f8
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/MutableBox.h
    M flang/lib/Lower/IntrinsicCall.cpp
    M flang/lib/Optimizer/Builder/MutableBox.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/test/Lower/allocatable-polymorphic.f90
    A flang/test/Lower/polymorphic-temp.f90

  Log Message:
  -----------
  [flang] Update createTempMutableBox to support polymorphic entities

When creating temporary from a polymorphic entity, its dynamic type
information must be carried over to the temporary.
This patch updates createTempMutableBox to support passing a source_box
from which the information will be carried over.
This is tested on the spread intrinsic and follow-up patches will updates
other temporary creation where needed.

Reviewed By: jeanPerier, PeteSteinfeld

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




More information about the All-commits mailing list