Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Issue 493883002: Attempt to let nss's SSSE3 files build with clang-cl. (Closed)

Created:
6 years, 4 months ago by Nico
Modified:
6 years, 4 months ago
Reviewers:
wtc
CC:
chromium-reviews
Visibility:
Public.

Description

Attempt 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -7 lines) Patch
M nss.gyp View 1 5 chunks +66 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Nico
6 years, 4 months ago (2014-08-20 21:44:03 UTC) #1
wtc
Patch set 1 LGTM. I suggest some changes. https://codereview.chromium.org/493883002/diff/1/nss.gyp File nss.gyp (right): https://codereview.chromium.org/493883002/diff/1/nss.gyp#newcode461 nss.gyp:461: # ...
6 years, 4 months ago (2014-08-21 23:27:49 UTC) #2
Nico
Thanks, all done. Committing… https://codereview.chromium.org/493883002/diff/1/nss.gyp File nss.gyp (right): https://codereview.chromium.org/493883002/diff/1/nss.gyp#newcode461 nss.gyp:461: # should be on 'nss'. ...
6 years, 4 months ago (2014-08-25 17:35:09 UTC) #3
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 4 months ago (2014-08-25 17:36:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/493883002/20001
6 years, 4 months ago (2014-08-25 17:37:41 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (20001) as 291603
6 years, 4 months ago (2014-08-25 17:37:57 UTC) #6
wtc
6 years, 4 months ago (2014-08-25 19:23:04 UTC) #7
Message was sent while issue was closed.
Patch set 2 LGTM.

Powered by Google App Engine
This is Rietveld 408576698