[flang] Lower tbp dispatch calls for polymorphic array element
authorValentin Clement <clementval@gmail.com>
Thu, 13 Oct 2022 12:48:20 +0000 (14:48 +0200)
committerValentin Clement <clementval@gmail.com>
Thu, 13 Oct 2022 12:48:42 +0000 (14:48 +0200)
commit4265f78dd7c42e56dac5641a9f9c4d401ecfc092
treea76b6a47f01e35560423f964c194e8c0ebc54adc
parente801e8f3e703f572e500aa360caa16e0eb6cbba6
[flang] Lower tbp dispatch calls for polymorphic array element

When calling a type-bound procedure from a polymoprhic array element,
the dynamic type needs to be extracted from the array descriptor
and passed to the embox operation for the pass-object.

Depends on D135809

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D135856
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Lower/ConvertVariable.cpp
flang/lib/Optimizer/Builder/FIRBuilder.cpp
flang/test/Lower/dispatch.f90