Commit dcd7431b authored by Anush Elangovan's avatar Anush Elangovan
Browse files

[XLA] Guard AVX, SSE and NEON instructions

On OSX you currently run into linker errors because unsupported
instructions are registered.

clang on OSX doesn't respect __attribute((WEAK)) (see PR#14893).
So we add ifdefs to register only the supported instructions.

Also register __sincos on __APPLE__ platforms.

TEST=Build tensorflow/compiler/aot/tests:tfcompile builds
successfully on OSX (10.13.2)
parent ab0fcace
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment