This patch implemented aarch64 neon SIMD copy instruction class.
I rebased this patch on latest truck.
This patch contains:
- Implemented SIMD dup instruction.
- Remove DupImm, use VDUP instead.
Known problem:
- In AAPCS64, half float can serve as setters and getters for function, so some ACLE intrinsic would receive or provide a variable with half float. But this feature isn't supported by Clang at moment. Even when I hack diagnose detector to avoid throwing error message, all half float will be converted to i16 in IR.
- There is no v4f16 in IR, which is used by some ACLE intrinsic.
Considering above problem, all ACLE intrinsic with half float isn't implemented in these patches. We will try to figure out how to implement this feature.
Please review, thanks.
Again, as the patch avoids full half-float support, this line seems out of place.