[all-commits] [llvm/llvm-project] c20385: [flang][hlfir] Support fir.declare in AbstractResu...
jeanPerier via All-commits
all-commits at lists.llvm.org
Tue Apr 25 00:05:14 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c203850ad55de6e1396d5735e4d9b56b66db9220
https://github.com/llvm/llvm-project/commit/c203850ad55de6e1396d5735e4d9b56b66db9220
Author: Jean Perier <jperier at nvidia.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M flang/lib/Optimizer/Transforms/AbstractResult.cpp
M flang/test/Fir/abstract-results.fir
Log Message:
-----------
[flang][hlfir] Support fir.declare in AbstractResult pass
The AbstractResult pass replaces allocation of function result on the callee
side per an extra argument so that the allocation of the result can be
done on the caller stack.
It looks for the result allocation from the fir.return op, so it needs
to handle (in a transparent way) a fir.declare in the chain between the
allocation and the fir.return.
Reviewed By: vzakhari, clementval
Differential Revision: https://reviews.llvm.org/D149057
More information about the All-commits
mailing list