DescriptionAttempt to let nss's SSSE3 files build with clang-cl.
cl.exe can use intrinsics (like e.g. _mm_shuffle_epi8()) even if the arch
targeted by the compiler doesn't support the SSE level needed by the intrinsic.
clang (and gcc) can't do this, because it converts intrinsics into general
LLVM operations, and the LLVM bitcode is then translated back into assembly
later on, based on the target arch.
So move the file requiring an SSSE3 into a new target that's built with
/arch:AVX. The caller of the function in the new target already checks that
the processor supports AVX before doing the call. This also allows cl.exe to
emit AVX code for the regular C code in that function.
(It's unfortunate that clang-cl deviates fairly heavily from cl in this regard.
But this is very difficult to change, and it's the only larger deviation so
far.)
BUG=82385
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=291603
Patch Set 1 #
Total comments: 8
Patch Set 2 : more defines #Messages
Total messages: 7 (0 generated)
|