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

Issue 1022143004: Add pnacl-translate --sz flag to enable Subzero. (Closed)

Created:
5 years, 9 months ago by Jim Stichnoth
Modified:
5 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Target Ref:
refs/heads/master
Project:
nacl
Visibility:
Public.

Description

Add pnacl-translate --sz flag to enable Subzero. Some pnacl-translate arguments are unsuitable for Subzero, such as: -sfi-* --allow-llvm-bitcode-input -fPIC -arch specifying non-x86-32 This triggers a fallback to pnacl-llc. No special warnings are issued on a fallback, but one can run with --pnacl-driver-verbose and look for pnacl-llc in the output as a fallback indication. This has been tested manually by setting default USE_SZ to 1 and running the LLVM test suite and the gcc torture tests. (Also tested on the scons smoke_tests, revealing one unresolved bug at this writing.) A follow-on CL will enable Subzero tests on the bots. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4091 R=dschuff@chromium.org, jfb@chromium.org, jvoung@chromium.org Committed: https://chromium.googlesource.com/native_client/src/native_client/+/bac8dff0bcf40b76d96576880f68d63c173501d1

Patch Set 1 #

Total comments: 15

Patch Set 2 : Code review changes #

Patch Set 3 : Fail on unsupported arch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -13 lines) Patch
M pnacl/driver/driver_env.py View 1 chunk +1 line, -0 lines 0 comments Download
M pnacl/driver/pnacl-translate.py View 1 2 13 chunks +63 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Jim Stichnoth
5 years, 9 months ago (2015-03-21 03:50:41 UTC) #2
JF
https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py File pnacl/driver/pnacl-translate.py (right): https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py#newcode150 pnacl/driver/pnacl-translate.py:150: 'SZ_THREADS' : '0', Can you use SPLIT_MODULE directly? https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py#newcode175 ...
5 years, 9 months ago (2015-03-21 04:41:27 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py File pnacl/driver/pnacl-translate.py (right): https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py#newcode146 pnacl/driver/pnacl-translate.py:146: 'USE_SZ' : '1', Oops this needs to default to ...
5 years, 9 months ago (2015-03-21 17:33:19 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py File pnacl/driver/pnacl-translate.py (right): https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py#newcode175 pnacl/driver/pnacl-translate.py:175: "env.append('SZ_FLAGS_EXTRA', $0)"), On 2015/03/21 04:41:27, JF wrote: > Use ...
5 years, 9 months ago (2015-03-21 18:06:30 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py File pnacl/driver/pnacl-translate.py (right): https://codereview.chromium.org/1022143004/diff/1/pnacl/driver/pnacl-translate.py#newcode175 pnacl/driver/pnacl-translate.py:175: "env.append('SZ_FLAGS_EXTRA', $0)"), On 2015/03/21 18:06:29, jvoung wrote: > On ...
5 years, 9 months ago (2015-03-22 04:20:43 UTC) #6
JF
lgtm
5 years, 9 months ago (2015-03-23 16:29:05 UTC) #7
jvoung (off chromium)
lgtm
5 years, 9 months ago (2015-03-23 16:49:26 UTC) #8
Derek Schuff
lgtm
5 years, 9 months ago (2015-03-23 16:54:47 UTC) #9
Jim Stichnoth
Committed patchset #3 (id:40001) manually as bac8dff0bcf40b76d96576880f68d63c173501d1 (presubmit successful).
5 years, 9 months ago (2015-03-23 20:58:46 UTC) #10
Mark Seaborn
Drive-by nit: Using the name "--sz" is obscure. It looks like an abbreviation for "size". ...
5 years, 9 months ago (2015-03-23 21:39:56 UTC) #11
Jim Stichnoth
On 2015/03/23 21:39:56, Mark Seaborn wrote: > Drive-by nit: Using the name "--sz" is obscure. ...
5 years, 9 months ago (2015-03-24 03:22:30 UTC) #12
native-client-reviews_googlegroups.com
5 years, 9 months ago (2015-03-24 03:35:50 UTC) #13
Message was sent while issue was closed.
On 23 March 2015 at 20:22, <stichnot@chromium.org> wrote:

> On 2015/03/23 21:39:56, Mark Seaborn wrote:
>
>> Drive-by nit: Using the name "--sz" is obscure.  It looks like an
>> abbreviation
>> for "size".  How about naming this "--subzero" instead?
>>
>
>  "Subzero" is already somewhat obscure -- or at least not self-describing
>> -- as a
>
>  project name, so having two names for it ("subzero" and "sz") makes it
>> harder
>> for someone who's new to this to figure out what's going on.
>>
>
> I chose --sz to reflect the tool name pnacl-sz, but you're right that it's
> a bit
> obscure.
>

Yeah, I noticed changes mentioning "pnacl-sz" go by, and I thought that was
a bit of an obscure name too.  It still makes me think "pnacl-size". :-)

Cheers,
Mark

-- 
You received this message because you are subscribed to the Google Groups
"Native-Client-Reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to native-client-reviews+unsubscribe@googlegroups.com.
To post to this group, send email to native-client-reviews@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-reviews.
For more options, visit https://groups.google.com/d/optout.

Powered by Google App Engine
This is Rietveld 408576698