ApplyOp provides the type parameters in its argument, so we can
take it from there. For hlfir.expr block arguments (such as with
user-defined assignments) we use hlfir.get_length in lowering.
Depends on D154561
Paths
| Differential D154562
[flang][hlfir] Lower char length inquiry via hlfir.get_length. ClosedPublic Authored by vzakhari on Jul 5 2023, 8:01 PM.
Details Summary ApplyOp provides the type parameters in its argument, so we can Depends on D154561
Diff Detail
Event TimelineComment Actions Thanks!
This revision is now accepted and ready to land.Jul 6 2023, 12:31 AM
Closed by commit rGa94eedc7d89f: [flang][hlfir] Lower char length inquiry via hlfir.get_length. (authored by vzakhari). · Explain WhyJul 6 2023, 1:22 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 537853 flang/lib/Optimizer/Builder/HLFIRTools.cpp
flang/test/Lower/HLFIR/elemental-array-ops.f90
flang/test/Lower/HLFIR/user-defined-assignment.f90
|
nit: although this is not functionally needed here, so far all the ops are spelled out with hlfir:: in the builder.create.