[LLVMdev] Implementing the ARM NEON Intrinsics for PowerPC

Konstantin Tokarev annulen at yandex.ru
Wed Oct 2 03:57:31 PDT 2013



02.10.2013, 14:46, "Steven Newbury" <steve at snewbury.org.uk>:
> How does this make any sense?  NEON intrinsics are there to support code
> generation targeting the ARM NEON SIMD unit on the ARM architecture.
> Power/PowerPC as it's own AltiVec/VSX SIMD units, which in turn has it's
> own intrinsics.
>
> If you want write code that explicitly targets CPU execution units it's
> necessarily tied to that specific CPU architecture.  If you just want to
> test code for written for a different CPU on a development box your best
> bet is to use a VM like QEMU with CPU emulation.
>
> If you want to write code that will take advantage of whatever SIMD
> hardware is available you might want to try abstracting your
> implementation and use one of the many libraries which provide a higher
> level API to SIMD optimized functionality.

For example, Eigen library [1] supports both AltiVec and NEON.

[1] http://eigen.tuxfamily.org

-- 
Regards,
Konstantin



More information about the llvm-dev mailing list