llvm-project
5f268d04 - [flang] Code generation for fir.pack/unpack_array. (#132080)

Commit
184 days ago
[flang] Code generation for fir.pack/unpack_array. (#132080) The code generation relies on `ShallowCopyDirect` runtime to copy data between the original and the temporary arrays (both directions). The allocations are done by the compiler generated code. The heap allocations could have been passed to `ShallowCopy` runtime, but I decided to expose the allocations so that the temporary descriptor passed to `ShallowCopyDirect` has `nocapture` - maybe this will be better for LLVM optimizations.
Author
Parents
Loading