Files
clang-p2996/flang/lib/Optimizer/Transforms/AbstractResult.cpp
Jean Perier c203850ad5 [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
2023-04-25 09:04:38 +02:00

17 KiB