[flang] Lower allocation with MOLD
authorValentin Clement <clementval@gmail.com>
Tue, 17 Jan 2023 14:51:04 +0000 (15:51 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 17 Jan 2023 14:51:33 +0000 (15:51 +0100)
commit2cd2b6a7b54610df160c8850dee2589a5bb20734
treeefd2b61a47e9aada9bf449e1dcfa29b89f239efc
parentb2fb93d6818e724e8c4fcb2309e7fd63a8cb2d01
[flang] Lower allocation with MOLD

Lower allocate statement with MOLD= to calls to the Fortran
runtime. PointerApplyMold and AllocatableApplyMold are called
depending on the object to be allocated.

Reviewed By: jeanPerier, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D141843
flang/include/flang/Runtime/allocatable.h
flang/lib/Lower/Allocatable.cpp
flang/runtime/allocatable.cpp
flang/test/Lower/allocatable-polymorphic.f90
flang/test/Lower/allocatable-runtime.f90