[flang][hlfir] probe ultimate intrinsic module procedure name
authorJean Perier <jperier@nvidia.com>
Fri, 30 Jun 2023 18:26:59 +0000 (20:26 +0200)
committerJean Perier <jperier@nvidia.com>
Fri, 30 Jun 2023 18:27:05 +0000 (20:27 +0200)
commit247bad1671a8229929a584ff0db788cf9e56e02a
tree2ec428eb6fab63c92cc08d08ca49c496f4f3287b
parent2d46264ca6d850ff34d1b1d18d0814e236316ec8
[flang][hlfir] probe ultimate intrinsic module procedure name

HLFIR lowering was currently hitting errors like "not yet implemented:
intrinsic: z0$iso_c_binding$c_associated_c_ptr". These error were caused
by HLFIR lowering using the name with the full context instead of
the ultimate one.
I do not want to change proc.GetName() because I think it may be best
if it retains the full context for its usages in semantics, so I fixed
the helper to get the name in lowering to HLFIR.

Differential Revision: https://reviews.llvm.org/D154230
flang/lib/Lower/ConvertCall.cpp
flang/test/Lower/HLFIR/intrinsic-module-procedures.f90