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

Issue 361733002: Update Subzero to start parsing PNaCl bitcode files. (Closed)

Created:
6 years, 5 months ago by Karl
Modified:
6 years, 5 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Update Subzero to start parsing PNaCl bitcode files. This patch only handles global addresses in PNaCl bitcode files. Function blocks are still not parsed. Also, factors out a common API for translation, so that generated ICE can always be translated using the same code. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3892 R=jvoung@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=8d7abae

Patch Set 1 #

Patch Set 2 : Fix nits. #

Patch Set 3 : Fix more nits. #

Total comments: 70

Patch Set 4 : Fix issues raised by Jan in patch set 1. #

Total comments: 16

Patch Set 5 : Fix issues raised in patch set 4. #

Patch Set 6 : Fix some nits in patch set 5. #

Patch Set 7 : Use SmallVector to hold data. #

Total comments: 48

Patch Set 8 : Fix nits in patch set 7. #

Patch Set 9 : Reformat IceConverter.cpp #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1081 lines, -71 lines) Patch
M Makefile.standalone View 4 2 chunks +4 lines, -2 lines 0 comments Download
A src/IceClFlags.h View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
M src/IceConverter.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -17 lines 0 comments Download
M src/IceConverter.cpp View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -47 lines 0 comments Download
A src/IceTranslator.h View 1 2 3 4 5 6 7 1 chunk +67 lines, -0 lines 0 comments Download
A src/IceTranslator.cpp View 1 2 3 4 5 6 7 1 chunk +58 lines, -0 lines 0 comments Download
A src/PNaClTranslator.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A src/PNaClTranslator.cpp View 1 2 3 4 5 6 7 1 chunk +859 lines, -0 lines 1 comment Download
M src/llvm2ice.cpp View 1 2 3 4 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Karl
This CL is ready for review. Jim - You should look at the following files, ...
6 years, 5 months ago (2014-06-30 18:28:50 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/361733002/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/361733002/diff/40001/Makefile.standalone#newcode33 Makefile.standalone:33: $(OPTLEVEL) -g $(LLVM_CXXFLAGS) -m32 -Wno-error=unused-parameter Can you avoid filtering ...
6 years, 5 months ago (2014-07-01 17:32:54 UTC) #2
Karl
https://codereview.chromium.org/361733002/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/361733002/diff/40001/Makefile.standalone#newcode33 Makefile.standalone:33: $(OPTLEVEL) -g $(LLVM_CXXFLAGS) -m32 -Wno-error=unused-parameter On 2014/07/01 17:32:52, jvoung ...
6 years, 5 months ago (2014-07-01 21:31:08 UTC) #3
jvoung (off chromium)
Parser mostly looks okay -- main question is about the ExitStatus vs return value. https://codereview.chromium.org/361733002/diff/40001/src/IceTranslator.h ...
6 years, 5 months ago (2014-07-02 17:00:16 UTC) #4
Karl
https://codereview.chromium.org/361733002/diff/40001/Makefile.standalone File Makefile.standalone (right): https://codereview.chromium.org/361733002/diff/40001/Makefile.standalone#newcode33 Makefile.standalone:33: $(OPTLEVEL) -g $(LLVM_CXXFLAGS) -m32 -Wno-error=unused-parameter On 2014/07/01 21:31:06, Karl ...
6 years, 5 months ago (2014-07-02 18:09:55 UTC) #5
jvoung (off chromium)
https://codereview.chromium.org/361733002/diff/60001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/361733002/diff/60001/src/PNaClTranslator.cpp#newcode592 src/PNaClTranslator.cpp:592: uint8_t *Buf = new uint8_t[Size]; On 2014/07/02 18:09:54, Karl ...
6 years, 5 months ago (2014-07-02 18:47:54 UTC) #6
Karl
https://codereview.chromium.org/361733002/diff/60001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/361733002/diff/60001/src/PNaClTranslator.cpp#newcode592 src/PNaClTranslator.cpp:592: uint8_t *Buf = new uint8_t[Size]; On 2014/07/02 18:47:53, jvoung ...
6 years, 5 months ago (2014-07-02 19:35:44 UTC) #7
jvoung (off chromium)
otherwise the parser part LGTM https://codereview.chromium.org/361733002/diff/110001/src/IceTranslator.cpp File src/IceTranslator.cpp (right): https://codereview.chromium.org/361733002/diff/110001/src/IceTranslator.cpp#newcode1 src/IceTranslator.cpp:1: //===- subzero/src/IceTranslator.cpp - Translate ...
6 years, 5 months ago (2014-07-02 22:07:34 UTC) #8
Jim Stichnoth
LGTM with some nits. https://codereview.chromium.org/361733002/diff/40001/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/361733002/diff/40001/src/PNaClTranslator.cpp#newcode644 src/PNaClTranslator.cpp:644: BlockParser *EnclosingParser, On 2014/07/01 17:32:53, ...
6 years, 5 months ago (2014-07-07 20:50:25 UTC) #9
Karl
Committed patchset #9 manually as r8d7abae (presubmit successful).
6 years, 5 months ago (2014-07-07 21:50:38 UTC) #10
Karl
https://codereview.chromium.org/361733002/diff/110001/src/IceClFlags.h File src/IceClFlags.h (right): https://codereview.chromium.org/361733002/diff/110001/src/IceClFlags.h#newcode1 src/IceClFlags.h:1: //===- subzero/src/IceClFlags.h - Cl Flags controlling translation --------===// On ...
6 years, 5 months ago (2014-07-07 21:50:57 UTC) #11
wala
6 years, 5 months ago (2014-07-08 00:56:06 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/361733002/diff/150001/src/PNaClTranslator.cpp
File src/PNaClTranslator.cpp (right):

https://codereview.chromium.org/361733002/diff/150001/src/PNaClTranslator.cpp...
src/PNaClTranslator.cpp:840: ExitStatus);
I get a compiler error on this line.

Apparent cause:

src/PNaClTranslator.cpp:42:3: note:   no known conversion for argument 4 from
‘bool’ to ‘int&’

Powered by Google App Engine
This is Rietveld 408576698