[flang] Lower storage_size intrinsic for polymorphic entities
authorValentin Clement <clementval@gmail.com>
Tue, 31 Jan 2023 08:44:07 +0000 (09:44 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 31 Jan 2023 08:44:33 +0000 (09:44 +0100)
commitb2bf995c02a04fd7f453d6931b79ce5a51871489
tree037b0d67622315bef2872df771782e03edb301ef
parent7bfd688d8d9c6018ca9ae7196cf828ee7713c284
[flang] Lower storage_size intrinsic for polymorphic entities

Lower STOARGE_SIZE intrinsic when the argument is polymoprhic
or unlimited polymorphic. STOARGE_SIZE for monomorphic entity is folded
by the frontend.

Reviewed By: vzakhari, vdonaldson

Differential Revision: https://reviews.llvm.org/D142896
flang/include/flang/Optimizer/Builder/MutableBox.h
flang/lib/Lower/IntrinsicCall.cpp
flang/lib/Optimizer/Builder/MutableBox.cpp
flang/test/Lower/Intrinsics/storage_size.f90 [new file with mode: 0644]