The changes convert hlfir.designate to fir.array_coor/fir.embox
to represent a subscripted element of a polymorphic array.
The type information is conveyed via the fir.embox's source_box.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/test/HLFIR/designate-codegen.fir | ||
---|---|---|
204 | This value is unused. Are there cases when it is used? |
flang/test/HLFIR/designate-codegen.fir | ||
---|---|---|
204 | This rebox is part of hlfir.declare HLFIR-to-FIR conversion pattern. The local box is used, for example, here: subroutine test(x) real x(:) call callee(x) end subroutine test %2 = fir.declare %arg0 {uniq_name = "_QFtestEx"} : (!fir.box<!fir.array<?xf32>>) -> !fir.box<!fir.array<?xf32>> %3 = fir.rebox %2 : (!fir.box<!fir.array<?xf32>>) -> !fir.box<!fir.array<?xf32>> %4 = fir.convert %3 : (!fir.box<!fir.array<?xf32>>) -> !fir.box<none> %5 = fir.call @_FortranAIsContiguous(%4) : (!fir.box<none>) -> i1 %6 = fir.if %5 -> (!fir.box<!fir.array<?xf32>>) { |
This value is unused. Are there cases when it is used?