[flang] Capture result interface of functions called in internal procedures
Character and array results are allocated on the caller side. This require evaluating the result interface on the call site. When calling such functions inside an internal procedure, it is possible that the interface is defined in the host, in which case the lengths/bounds of the function results must be captured so that they are available in the internal function to emit the call. To handle this case, extend the PFT symbol visit to visit the bounds and length parameters of functions called in the internal procedure parse tree. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D128371 Co-authored-by:Jean Perier <jperier@nvidia.com>
Loading
Please sign in to comment