mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 12:36:07 +00:00

The flang runtime will complain when the number of elements in the two descriptors involved in the data transfer are not matching. In some cases, we can still perform the data transfer to match the behavior of the reference compiler. When the RHS elements count is bigger than the LHS elements count and both descriptors are contiguous, we can perform the data transfer with the bare pointers and the number of bytes from the LHS. We don't really have unit tests set up for data transfer, this is why I didn't include one here.