[all-commits] [llvm/llvm-project] 8c77c0: [flang] Initial support of allocate statement with...

PeixinQiao via All-commits all-commits at lists.llvm.org
Fri Jan 13 04:43:07 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c77c011c193eba6f0c45cbf5cba6ea7d6a147fe
      https://github.com/llvm/llvm-project/commit/8c77c011c193eba6f0c45cbf5cba6ea7d6a147fe
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M flang/include/flang/Runtime/assign.h
    M flang/lib/Lower/Allocatable.cpp
    M flang/runtime/allocatable.cpp
    M flang/runtime/assign.cpp
    A flang/runtime/assign.h
    M flang/runtime/pointer.cpp
    A flang/test/Lower/allocate-source-allocatables.f90
    A flang/test/Lower/allocate-source-pointers.f90

  Log Message:
  -----------
  [flang] Initial support of allocate statement with source

Support allocate statement with source in runtime version. The source
expression is evaluated only once for each allocate statement. When the
source expression has shape-spec, uses it for bounds. Otherwise, get
the bounds from the source expression. Get the length if the source
expression has deferred length parameter.

Reviewed By: clementval, jeanPerier

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




More information about the All-commits mailing list