[flang] Lowering and implementation for same_type_as
authorValentin Clement <clementval@gmail.com>
Wed, 11 Jan 2023 08:30:14 +0000 (09:30 +0100)
committerValentin Clement <clementval@gmail.com>
Wed, 11 Jan 2023 08:30:42 +0000 (09:30 +0100)
commit4bb1751140b99ce4a8bb7f88c1b631c535e52f1d
tree53a0774b4078a94e24a930c801e4bd8444a9bfc0
parentb71bbbb64ff92184e13a793b71982df4cdee0271
[flang] Lowering and implementation for same_type_as

The test performed by same_type_as does not consider kind type
parameters. If an exact match is not found, the name of the
derived type is compared. The name in the runtime info does not include
the kind type parameters as it does in the mangled name.

Reviewed By: jeanPerier, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D141364
flang/include/flang/Optimizer/Builder/Runtime/Derived.h
flang/include/flang/Runtime/derived-api.h
flang/lib/Lower/IntrinsicCall.cpp
flang/lib/Optimizer/Builder/Runtime/Derived.cpp
flang/runtime/derived-api.cpp
flang/test/Lower/Intrinsics/same_type_as.f90 [new file with mode: 0644]