[all-commits] [llvm/llvm-project] 52e239: [flang] Add AllocatableInit functions for use in a...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Mon Mar 20 02:00:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 52e239794f35be6a68b2273f88a99d9207e77cab
https://github.com/llvm/llvm-project/commit/52e239794f35be6a68b2273f88a99d9207e77cab
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-03-20 (Mon, 20 Mar 2023)
Changed paths:
M flang/include/flang/Runtime/allocatable.h
M flang/runtime/allocatable.cpp
M flang/unittests/Runtime/Allocatable.cpp
Log Message:
-----------
[flang] Add AllocatableInit functions for use in allocate lowering
`AllocatableInitIntrinsic`, `AllocatableInitCharacter` and
`AllocatableInitDerived` are meant to be used to initialize a
descriptor when it is instantiated and not to be used multiple
times in a scope.
Add `AllocatableInitDerivedForAllocate`, `AllocatableInitCharacterForAllocate`
and `AllocatableInitDerivedForAllocate` to be used for the allocation
in allocate statement.
These new functions are meant to be used on an initialized descriptor
and will return directly if the descriptor is allocated so the
error handling is done by the call to `AllocatableAllocate`.
Reviewed By: PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D146290
More information about the All-commits
mailing list