Converting a !fir.ref<BoxType> -> BoxType is sort of ok because all boxes are bufferized during codegen and replaced with a memory reference. Then CodeGen of fir.dispatch does the load. But as we are working on moving polymorphic transformation into the fir-polymorphic-op pass (https://reviews.llvm.org/D144921), the load needs to be made explicit so the lowering of fir.dispatch can be done in FIR instead of LLVM dialect.
I thought it would be better to make this change into its own patch in case it introduces issues.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
All builds and tests correctly, but I don't understand this code very well. Someone who does should approve.
Comment Actions
As you pointed out this is ok to do the conversion but I think it is looks better to do the load. Thanks for the patch Renaud! LGTM
Comment Actions
There is a failure on the pre commit CI but I doesn't look related to your change at all.
Driver/code-gen-rv64.f90