Source allocation is similar to mold allocation + assignment. Use
ApplyMold runtime entry point for polymorphic source allocation.
It could be generalized for other source allocation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, out of curiosity what went wrong when using the MOLD runtime entry point (I would also have expected the MOLD and SOURCE case to be similar expect for the extra assignment part in SOURCE)?
Comment Actions
All builds and tests correctly and looks good.
But it would be even better if you would add a test to .../llvm-project/flang/unittests/Runtime.
Comment Actions
In fact ApplyMold seems to do the trick just fine and would be needed as well for TypeCategory::Character. I'll will update the patch to use ApplyMold so the runtime has less entry point.
Comment Actions
@jeanPerier @PeteSteinfeld Since the new update is quite different, can you have a second look?