On Mon, Feb 4, 2013 at 3:19 PM, Geoffrey Mainland <mainland@apeiron.net> wrote:
What would a sensible fallback be for AVX instructions? What should we
fall back on when the LLVM backend is not being used?
Maybe we could desugar AVX instructions to SSE instructions on platforms
that support SSE but not AVX, but in practice people would then #ifdef
anyway and just use SSE if AVX weren't available.
The current idea is to hide the #ifdefs in a library. Clients of the
library would then get the "best" short-vector implementation available
for their platform by using this library. Right now this library is a
modified version of primitive, and I have modified versions of vector
and DPH that use this version of the primitive library to generate SSE
code.