[flang] Allow conversion from hlfir.expr to fir::ExtendedValue
For now at least, the plan is to keep hlfir.expr usage limited as sub-expression operand, assignment rhs, and a few other contexts ( e.g. Associate statements). The rest of lowering (statements lowering in the bridge) will still expect to get and manipulate characters and arrays in memory. That means that hlfir.expr must be converted to variable in converter.genExprAddr/converter.genExprBox. This is done using an hlfir.associate, and generating the related hlfir.end_associate in the statement context. hlfir::getFirBase of is updated to avoid bringing in the HLFIR fir.boxchar/fir.box into FIR when the entity was created with hlfir::AssociateOp. Differential Revision: https://reviews.llvm.org/D139328
Loading
Please sign in to comment