![]() Add hlfir.associate and hlfir.end_associate codegen. To properly allow reusing the bufferized expression storage for the newly created variable, bufferization of hlfir.expr has to be updated so that hlfir.expr are translated to a variable and a boolean to indicate if the variable storage needs to be freed after the expression was used. That way the responsibility to free the bufferized expression can be passed to the variable user, and applied in the hlfir.end_associate. Right now, not of the bufferized expression are heap allocated, so generating the conditional freemem in hlfir.end_associate is left as a TODO for when it can be tested. Differential Revision: https://reviews.llvm.org/D139020 |
||
---|---|---|
.. | ||
assign.fir | ||
associate-codegen.fir | ||
associate.fir | ||
concat-bufferization.fir | ||
concat.fir | ||
declare-codegen.fir | ||
declare.fir | ||
designate-codegen.fir | ||
designate.fir | ||
expr-type.fir | ||
invalid.fir |