[flang] Delegate pointer association to class(*) pointer to the runtime
authorValentin Clement <clementval@gmail.com>
Wed, 30 Nov 2022 17:57:28 +0000 (18:57 +0100)
committerValentin Clement <clementval@gmail.com>
Wed, 30 Nov 2022 17:57:57 +0000 (18:57 +0100)
commitabefd87e706a47303905edcff031a22edf880921
treebbf5fe707308366dc1139f104dbf4fcf9bbc8208
parent80fcf992b7b7d78a901bc8f35769ada72017f015
[flang] Delegate pointer association to class(*) pointer to the runtime

Pointer association with an unlimited polymorphic pointer on the lhs
requires more than just updating the base_addr. Delegate the association to
the runtime function `PointerAssociation`.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D139019
flang/include/flang/Lower/Runtime.h
flang/include/flang/Optimizer/Dialect/FIRType.h
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/Runtime.cpp
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/lib/Optimizer/Dialect/FIRType.cpp
flang/test/Lower/polymorphic.f90