llvm-project/flang/test/HLFIR
Jean Perier 319f0221ee [flang] hlfir.associate and hlfir.end_associate codegen
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
2022-12-01 17:58:28 +01:00
..
assign.fir [flang] Add hlfir.assign definition 2022-11-15 12:00:16 +01:00
associate-codegen.fir [flang] hlfir.associate and hlfir.end_associate codegen 2022-12-01 17:58:28 +01:00
associate.fir [flang] Add hlfir.associate and hlfir.end_associate definitions 2022-11-30 13:43:56 +01:00
concat-bufferization.fir [flang] Add hlfir.concat codegen 2022-11-25 09:39:39 +01:00
concat.fir [flang] Add hlfir.concat operation definition 2022-11-25 09:34:15 +01:00
declare-codegen.fir [flang] Add hlfir.declare codegen 2022-11-14 11:19:35 +01:00
declare.fir
designate-codegen.fir [flang] Add hlfir.designate codegen for Fortran ArrayRef 2022-11-21 10:17:38 +01:00
designate.fir [flang] Add hlfir.designate definition 2022-11-18 08:41:38 +01:00
expr-type.fir
invalid.fir [flang] Add hlfir.concat operation definition 2022-11-25 09:34:15 +01:00